|
Re: Report Parameter values size [message #869677 is a reply to message #869301] |
Thu, 03 May 2012 16:58  |
|
Sure just use a getDefaultValueList script on the parameter. For
example assume I have a scripted dataset that returns an integer 1-12
that represent months. I then tie a multi-select parameter to this data
set and put the following default values script in:
var dSLArray = [];
importPackage( Packages.java.util );
cal = Calendar.getInstance();
tmonth = cal.get(Calendar.MONTH) +1;
dSLArray[0]= tmonth-1;
dSLArray[1]= tmonth;
dSLArray[2]= tmonth+1;
dSLArray;
This will set the default values for the parameter to be current month -
1, current month, and current month +1
See attached example.
Jason
On 5/3/2012 3:47 AM, mkrivic Mising name wrote:
> Hi,
>
> Is there possible to get an array of BIRT report parameter values?
> Also, is there possible to manage with default values in BIRT?
>
> For example, if I have a parameter with months from 01 to 12 values, can
> I make some of the values to be default when I want?
> Example: it's May month current, and I would like to set parameter value
> 05 to be default...
>
> Hope you understood me.
>
> Regards,
|
|
|
Powered by
FUDForum. Page generated in 0.02590 seconds