robinbowes Posted September 30, 2008 Share Posted September 30, 2008 Hi,I have a couple of report parameters - start_date and end_date - which pop up as prompts. I'd like to set the default value that appears in the prompts so start_date is today - 7 days, and end_date is today. I tried setting the Default Value Expression of the parameter to "date() - 7" but this doesn't appear to have any effect. Is it possible to do what I want? Thanks, R. Link to comment Share on other sites More sharing options...
svenn Posted September 30, 2008 Share Posted September 30, 2008 Note that the parameter prompt only exist for testing purposes in iReports. They do work outside of the iReports environment. Link to comment Share on other sites More sharing options...
robinbowes Posted September 30, 2008 Author Share Posted September 30, 2008 Oh, I see. How do I test them then? Link to comment Share on other sites More sharing options...
svenn Posted September 30, 2008 Share Posted September 30, 2008 Sorry that should be "They do NOT work outside of the iReports environment."How do you test what? Link to comment Share on other sites More sharing options...
robinbowes Posted September 30, 2008 Author Share Posted September 30, 2008 Ah, OK. That makes more sense. Outside the iReport environment, i.e. when I try and run the reports from SugarCRM, the parameters will be provided programmatically. That is, if I can resolve the many other problems I'm having (see my other recent posts!). Thanks, R. Link to comment Share on other sites More sharing options...
gabrielinux Posted October 2, 2008 Share Posted October 2, 2008 Look up the java calendar class in Google. You need to write a custom function and import the calendar class. 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