Community
Participate
Working Groups
I have a date parameter in a report design. I would like to set the default value dynamically to be the date that the report is run. Scripting is ok.
Currently there's no way to change default value for parameter on the fly. Please refer to bug 124950. If you just want to revalidate the value when original parameter value meets specific criteria, you can do like this in reportDesign.initialize() method: var p1v = reportContext.getParameterValue("p1"); if ( p1v==null /*or other conditions*/) { reportContext.setParameterValue("p1", new java.util.Date()); }
*** This bug has been marked as a duplicate of bug 124950 ***