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)
Two questions about required parameters
AnnaB
Hi all,<br />
<br />
I have two questions about required parameters.<br />
<br />
1. Is it possible to have "either/or" required parameters? Eg. the user needs to specify parameterFoo OR parameterBar for the report to run.<br />
<br />
2. When using cascaded parameters, is it possible to keep the top level parameter optional, but make the second level parameter required? So if your parameters are paraFoo -> paraBar, you don't <em class='bbc'>have</em> to specify a paraFoo, but if you do, paraBar is required.<br />
<br />
Thanks so much!
Find more posts tagged with
Comments
kclark
You can't do this by default from eclipse, but you can do both of these by creating a custom parameter page. <a class='bbc_url' href='
http://www.birt-exchange.org/org/forum/index.php?app=blog&module=display§ion=blog&blogid=45&showentry=453'>Take
a look at this blog</a> I wrote showing how to create a custom parameter page. Once you have created the parameters you want to work with you can use javascript on that page. How I would go about working with the either/or would be to make neither of them required in the rptdesign and then in the custom parameter page use some JavaScript to check if at least on has been used.
AnnaB
Excellent, thanks!
Too bad that we can't do it directly from BIRT. But I think we'll have a lot of fun with custom parameter pages.
sumathra
<p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">The scenario is i kept product line as constant but user may select any radio button like country,state,city.....first if i select </p><p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">i)product line and country first time it pass by query in before open ....</p><p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">ii)but if i select product line and state again it passing to country not to state ?????</p><p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> </p><p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">so its not clear previous option in jsp but if i set manually NULL VALUE in listbox it pass well but user cant set manually a null value to each listbox so how to avoid and achieve this???</p><p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> </p><p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">kindly help on this i cant go further ???please kclark kindly update this sample jsp and report</p>