Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Dynamically Update Parameter List Box Based on Other Parameters
the.root
Hello, I hope this is an easy one out there for the community. While I know I'm just getting started with Birt and intend to really learn and read up on it; I kind of need some quick guidance on how to solve this present dilemma:
Say I have 4 Parameters
Param_A
Param_B
Param_C
Param_D
They are all listbox parameters with dynamic data set pointed to a simple jdbc/SQL query datasets. Each of these parameters ties to each other in some way through different queries. So whatever Param_A gets selected as, the remaining 3 parameters need to be updated to populate the valid dynamic dataset based on the one selected. I think I can figure out the SQL statements just fine, as far as joining, figuring out which ones are selected, etc. Also to note that none of these have to depend on each other, so I may only set Param_D, it may auto update the rest of the Param_$ but does not have to depend on the others previously being set. It's really a MANY > MANY relationship of the parameters, thus why I cannot use the Cascading Feature, as that is completely dependent of the child param and each parent directly above it. I guess my main thought on how to do this, and question brought to this thread is:
Can I make all of these separate parameters and then figure out a way to update the other listbox contents based on a selection of any? Is there some onSelection event handler or some easy way to deal with this? If anyone has any thoughts or suggestions on how to do the previous statement, or any other methods of achieving what I need - then please let me know! Bare in mind I'm not vary versed on Java/JS/Birt, so try not to make any assumptions when explaining something simple :-)
Thank you very much!
Find more posts tagged with
Comments
mwilliams
My initial guess is that you'll have to create your own custom parameter interface do this. I don't believe there's a way with BIRT's default parameter setup.
the.root
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="84217" data-time="1318881637" data-date="17 October 2011 - 01:00 PM"><p>
My initial guess is that you'll have to create your own custom parameter interface do this. I don't believe there's a way with BIRT's default parameter setup.<br /></p></blockquote>
<br />
Thanks for the reply. Yeah I ended up just doing it in a php script, was easiest for me. If I knew JS better I probably could've just done it with that inside of the birt script section. It's just a shame they didn't have some functionality built into the cascading parameters where they didn't have to rely on the parent.
mwilliams
Yes, it would be a nice feature! I've seen many people ask for the same. You can file an enhancement request at
http://www.birt-exchange.org/org/resources/bug-reporting/
and then post the info in here so that others can vote for it to make it into future versions.