pedroribeiro Posted January 14, 2021 Share Posted January 14, 2021 Hi folks,I need help to set a correct aproach to the following problem:I have a report with two java.util.Collection parameters (multi-select query).The main dataset query for the the report is heavy load processing, in special if both parameters (that work as filters in SQL Where clause) are NULL.So, any ideias to avoid running query when both parameters are null?Thanks,Peter Link to comment Share on other sites More sharing options...
gustavofarias Posted January 15, 2021 Share Posted January 15, 2021 Check this: http://jasperreports.sourceforge.net/sample.reference/query/index.html#query"$P!{}Using $P!{} allows you to modify the query syntax itself."You can use a second parameter that depending on the nullability of one or tow collections holds a different where clause 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