ojha Posted March 30, 2007 Share Posted March 30, 2007 hello,i want to use dynamic where clause with help of $P!{...}. Please tell me which jasper report version will support this tag. thanking youojha Link to comment Share on other sites More sharing options...
aniruddh4u Posted March 30, 2007 Share Posted March 30, 2007 Hi,, You can't change query dynamically like for condition1 .... QueryA or condition2...QueryBbut yes ireport 1.3.1 support u writing filter expression for query in this you can write expression -- Aniruddh Link to comment Share on other sites More sharing options...
janejiang Posted March 31, 2007 Share Posted March 31, 2007 You can define parameters in your report, and use the parameter in the report query. For example, if you define a parameter param_report_id, your report query can be something like SELECT * FROM table_name WHERE column_name = $P{param_report_id} If you need to use numeric parameter, it is easier to define it as string then do SELECT * FROM table_name WHERE to_char(column_name) = $P{param_report_id} Hope this helps, Jane Link to comment Share on other sites More sharing options...
ojha Posted April 2, 2007 Author Share Posted April 2, 2007 :) thanks jane .i got it....ojha 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