subodhjoshi82 Posted October 25, 2012 Share Posted October 25, 2012 Hi,I am creating report with the help of ireport4.5.0 . I am newbie on Jasper reort. can anyone tell me how can create a report which contain query and we pass the parameter to report . And same report file will work with Java web application.Thanks Link to comment Share on other sites More sharing options...
mgeise Posted October 25, 2012 Share Posted October 25, 2012 To reference a parameter in your query you would write your query in similar to the following:Select x, y, z from table where col1 = $P{parameter_name}Then, assuming that you are deploying to JasperReports Server, you would set up an input control with the same name as the parameter to allow your end users to set the value of the parameter. Here is some additional information on using parameters in reports: http://community.jaspersoft.com/wiki/using-report-parameters Link to comment Share on other sites More sharing options...
subodhjoshi82 Posted October 26, 2012 Author Share Posted October 26, 2012 Thanks for your reply . Can it be possible control over query. i added query inside filename.jrxml or fileName.jasper but can it be possible with Java code that i will execute query of jasper or jrxml file and then set reult to Jasper page Link to comment Share on other sites More sharing options...
bafana710 Posted November 6, 2017 Share Posted November 6, 2017 I tried the select statement mentioned here and I inserted it on my .jrxml file source code but its mnot working 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