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)
Default value for the second level drop down from cascading parameter group.
D_Petrov
<p>Hello,</p>
<p> </p>
<p>There are some articles in the web about that , but no cure inside them.<br>
I modified ComboBoxParameterFragment.jsp and AbstractParameterDialog.js to fix the issue with the null value at the top of the List Box and it is working, but does not affect the Combo box control.<br>
Is there currently trick to fix the issue with the empty top value of a Combo Box re-loaded by another Combo box in a cascading parameter group?<br>
I am trying to put the default value always at the top after reload.</p>
<p>Birt version 4.4.0</p>
<p> </p>
<p>Regards,</p>
<p>D. Petrov</p>
<p> </p>
<p> </p>
Find more posts tagged with
Comments
Clement Wong
<p>The HTML <option> tags are dynamically created in AbstractParameterDialog.js.</p>
<p> </p>
<p>I'm not sure how you fixed the null value issue, but assuming that this is default (untouched) version of the .js you can modify line 105 (in my OS BIRT 4.4.2 version) to start the counter at 1 instead of 0 so that the empty <span style="font-family:'courier new', courier, monospace;"><option value=""></option></span> is not created.</p>
<p> </p>
<p>Before:</p>
<pre class="_prettyXprint">
// Add new options based on server response.
for( var i = 0; i < selections.length; i++ )
</pre>
<p>After:</p>
<pre class="_prettyXprint">
// Add new options based on server response.
for( var i = 1; i < selections.length; i++ )</pre>