Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Dear Sirs
I am using Joget version 3 and I have installed the Jasper reports server. but i need to perform the following:-
1. How can I pass dynamic parameters between the( Joget userview or Joget web console) and the JasperReport. for example i need to pass two parameters (date from & date to) from the joget userview to JasperReport and then display the report which will display info about all the completed processes within these dates.
i tired my best to find relevant documentation but i fail,, bearing in mind that this is a high priority requirement from my client.
Best Regards
5 Comments
Owen Ong
Hi John,
There is a JasperReports Userview Menu in our 3.1-BETA release. But it still very basic and incomplete feature. This extra feature is not able to integrate with JasperReport server as well.
For temporary solution, you may put it in an iframe if no authentication is required. To pass parameter, you may try make use of our Hash Variables.
Hope this help.
Best regards.
Imran Siddique
Hi John,
If you are looking to generate really fancy/dynamic reports, here is my solution, this is what I did. This is going to be mixture of Joget and standard Java Servlet.
1. Create a form in Joget, this form will have those parameter selections which will be passed to your jasper report. (see the attachment of my application form)
2. Create a Java Servlet application, which will do the Jasper stuff (mean all of your jasper report stuff), and copy your servlet application in the webapp folder of tomcat.
3. Now insert a custom HTML element in your joget form and make a call to your jasper report app. Following is the code from my app.
Once you hit the submit button, It will pass the parameters to jasper servlet application and it will let you download the generated report.
I am also attaching the piece of Java Code which I used to generate the PDF report.
And your sql should be like this (inside the ireport)
Hope this will help.
johnjohn123
thanks for the reply ,, but i am unable to know how i can add a new "submit" button to my form.
Alfa Papa
How to generate PDF and XLS or CSV report ?
Thank you ..
Hugo
Hi there,
In the (recent latest Joget) configuration of JasperReports Reporting Integration Userview Menu, you can select to export the report in PDF or Excel.
Hope this helps.
Thanks.