banderton_1 Posted July 8, 2013 Share Posted July 8, 2013 How can i configure input controls so it will accept nulls and still return data? The use case is for when you may or may not want to require an input control on a report. If the user leaves the input text field null, then all values will return. Currently, no values return and I do not want the filtering to be mandatory. Link to comment Share on other sites More sharing options...
ajinkya_c Posted July 9, 2013 Share Posted July 9, 2013 Hi,I did the same thing in iReport based report1. create dynamic where condition in parameter P!{} .2. Write condition in parameterif(param1!=null ? " where field=param2": null)so that if the you provide not null value then it will use dynamic where condition in your query ortherwise it replaced with null value so there is no filter in the query.Try this if you are using iReport.RegardsAjinkya 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