p_a Posted October 18, 2007 Share Posted October 18, 2007 Hello all, I am working with iReport2.0.1 and wanna send query as a string to iReport.So I define a string parameter and set the query as its default value: "select * from test" as a default value for $P{dbQuery},but the problem is the iReport database could not understand String parameter and give me an exception!!!!! It says : {You have an error in your sql syntax;check the manual that corespondens to your SQL server version for the right syntax to use near "select * from test" !!!} Can anyone please tell me where did I wrong??????? Thank you,Pegah Link to comment Share on other sites More sharing options...
vinays84 Posted October 18, 2007 Share Posted October 18, 2007 use $P!{dbQuery} Link to comment Share on other sites More sharing options...
p_a Posted October 20, 2007 Author Share Posted October 20, 2007 Hi vinays84, Thanks for your help.It works:P 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