teximo19 Posted August 22, 2008 Share Posted August 22, 2008 Hi,I am a newbie in ireport and try to send parameters to the report for getting a date range in a field.I generated the sql query like this DATE_FÄ°ELD BETWEEN $P{param1} AND $P{param2} but don't know what to add default value expressions of the parameters.Could you provide an example for this?Any help would be appreciated.Thanx. Link to comment Share on other sites More sharing options...
teximo19 Posted August 22, 2008 Author Share Posted August 22, 2008 Hi, I am a newbie in ireport and try to send parameters to the report for getting a date range in a field. I generated the sql query like this WHERE DATE_FÄ°ELD BETWEEN $P{param1} AND $P{param2} but don't know what to add default value expressions of the parameters. Could you provide an example for this? Any help would be appreciated. Thanx. Link to comment Share on other sites More sharing options...
iancr01 Posted August 26, 2008 Share Posted August 26, 2008 You need to select java.util.Date for the class type and something like new Date("12/12/2007") for the default value expression 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