Weeeelllll…
Here we go.
You only need the jasper servoy plugin to get it to work.
The plugin ships with the java libraries you need, to run a report (jasperreports-3.0.0.jar, and so on). So this is the “server”.
What you have to do are the following steps:
Download the Plugin.
Use the Basic plugin to start with.
Put the content of the plugin folder in :
<install_root>/servoy/application_server/plugins
AND
<install_root>/servoy/developer/plugins
If the server/developer is running, restart it, so they can initialise the plugin.
Go to your application_server Admin Page.
Select Server Plugins.
There you will find:
jasperPluginRMI
directory.jasper.report:
Set it for example to:
C:\report (win)
or
/home/report (linux)
Thats where you have to put your *.jasper files.
In Servoy you need to place a button (or whatever you want to fire the report from) and connect it to the Plugin.
e.g.
plugins.jasperPluginRMI.jasperReport(forms.customers.controller.getServerName(),‘myCustomerReport.jasper’,null,‘view’,{pcustomerid: forms.customers.customer_id});
If you need more examples, just look in the solution explorer of Servoy.
There is a plugin node.
In that node, there you will find the jasper plugin.
click once on the runReport method.
Right above the plugin Methods, there are to pictures of textfiles with yellow arrows.
Click the left one! (on Mouseover there will be a tooltipp telling you Move Sample Code)
You will see, that there will be plenty of code in your script.
I hope this qas “dummy” enough for you ![Wink ;)]()
Long Live an prosper!
Jan