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)
Default for Dynamic Parameter
JoeO
I have a dynamic parameter list box that is populated based on user credentials. The parameter is sorted alphabetically, but it always shows up empty when the user first comes to the parameters page-- which is not a possible value in my data set. Is there a script I can write in the default box that can show the first item? Thanks!
Find more posts tagged with
Comments
mwilliams
Last time I messed with a dynamic list box parameter, I'm pretty sure the first value in the list box was the default selection. What is your BIRT version?
JoeO
Actuate 11 SP3. I have provided a sample using Classic Models. In this simple scenario, I could default to "Boston" since it is the first, but in my actual scenario, the values change based on the users log in information, so I wouldn't be able to hard code the first. Thanks again for all of your help.
JoeO
I dont think the attachment made it on my last post!
mwilliams
Ah. In open source BIRT, this works as I described. The first value is the default selection. For Actuate BIRT, it is blank. Take a look at this thread for a possible option.
http://www.birt-exchange.org/org/forum/index.php/topic/24574-set-parameter-default-using-sql/
You could also file a bug/enhancement request for Actuate BIRT to handle this like the open source version.
JoeO
I downloaded the file from your link and couldn't get the report to run. I took a look at the default script and that is way above my java script knowledge, so I will just have to deal with it for now. I will file bug report with Actuate.
Thanks again.