pjtech Posted May 22, 2010 Share Posted May 22, 2010 Has anyone had experience of inserting and populating a selection form before a report is generated in Jasper Server? The following is an example is what I want to achieve: Retrieve the Max and Min values of a date held on the database. Display a form that uses JCalandar and invite the user to change the date values if required. Validate the dates on the form and then pass it back to the report.I am currently using JRScriptlet that works for retrieving values / but not for the form display. I am using callBeforeReportInit hook to display the selection form.I would be grateful if some one could point me in the right direction.ThanksPeter Link to comment Share on other sites More sharing options...
forthamilton Posted May 24, 2010 Share Posted May 24, 2010 are you talking about the report parameters? you can do it in jasperserver easily. There is a step called "Controls & Resources" of Report Wizard, you can add parameters(single select-query in your case) to the report. Jasperserver will show a form or pop-up window to end-user to collect parameters. Link to comment Share on other sites More sharing options...
pjtech Posted May 24, 2010 Author Share Posted May 24, 2010 Hi Thanks for the reply.Yes at the moment we use controls with SQL select query for the required date values. However, we need to validate the parameters before the report is submitted. A simple example a user may put in a start date greater than the end date.Although the example is just dealing with two dates the live application there is a requirement for more sophisticated validation, hence the use of a scriptlet. Also some of these parameters are rather heavy on resources therefore we want to hold them as static variables as they will be common across a number of reports.Again ThanksPeter Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now