logudotcom Posted March 9, 2007 Share Posted March 9, 2007 I have encountered a problem in creating dynamic reports using Jasper Reports. The problem is that, "The query has to be passed to the .jrxml file dynamically." from the java webapp. I pass the query using parameter. Parameter name is "querystring". The type is "String". When I pass the value from the java code, the value(select * from tbl1) is preceded and ended with a single quote(value would be 'select * from tbl1' ). So the database would throw an error saying, "Parse error at character 1". If you have any solutions, you are welcome to share it with me Thanks Link to comment Share on other sites More sharing options...
tarelr Posted March 10, 2007 Share Posted March 10, 2007 in your jrxml file, how do you call your parameter queryString? Be sure you call le the parameter with the $!P{} synthaxe. Link to comment Share on other sites More sharing options...
amila325 Posted March 12, 2007 Share Posted March 12, 2007 i have the same prob i need to send a query to jasper jrxml file can you please give me a small example both jrxml file and java file Thank you in advance :) :) 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