Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Parameter Group Optional
Jagan
Hi All.,
Am new to this birt report, Can any one help to solve this issue. I have a limitation like either i have to select 1st group of parameter or next group parameter. But must have to select any one group. The first group of parameter having 2 parameters and next group having one parameter. The parameter groups are like a radio button. i have to select any one group based on that i have to retrieve the values from database.
Ex
Parameter Group 1.
i. Start Date(text box)
ii. End date(text box)
Parameter Group 2.
i. List (today, yesterday, last week, last month)
Thanks in Advance. Please can any one help.
Find more posts tagged with
Comments
thuston
I would have a default for the List (Today). Then check StartDate and EndDate. If values are blank or invalid, the use whatever the List has.<br />
<br />
Decide what to use in the dataSet BeforeOpen script. Something like this, though I have not tested it:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>var useList = true;
if (params["StartDate"].value != null && params["StartDate"].value != "") {
if (params["EndDate"].value != null && params["EndDate"].value != "") {
if (params["EndDate"].value > params["StartDate"].value) {
useList = false;
}
}
}
if ( useList ){
//some java switch to set Start and End date based on the list's string values
}</pre>