razaalirizvi Posted November 24, 2009 Share Posted November 24, 2009 i can pass parameter to the query written in my report.jrxml file but what if i want to create that query in java and send that complete query in report.jrxml??how to do that. any help will be appreciated. thanks. Link to comment Share on other sites More sharing options...
Teodor Danciu Posted November 24, 2009 Share Posted November 24, 2009 Hi, By looking at the /demo/samples/query sample provided with JR, where you can see the $P!{} syntax being used inside the query.Actually, the whole query could be passed in like that. I hope this helps.Teodor Link to comment Share on other sites More sharing options...
razaalirizvi Posted November 24, 2009 Author Share Posted November 24, 2009 Basically i want to pass the whole query in that.but no iformation is provided for that.parametes can be accessed using $P{variable_name}. but cant pass whole query in that. Link to comment Share on other sites More sharing options...
lucianc Posted December 10, 2009 Share Posted December 10, 2009 You can pass the whole query with $P!{queryText}. See http://jasperforge.org/uploads/publish/jasperreportswebsite/trunk/tutorial.html?group_id=252#Parameters for a short explanation on this topic.Regards,Lucian 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