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)
Select checkbox based on response in Report
tirumala_d
Hi,I am new to BIRT.Within worktype column,check boxes will be provided.Based on the worktype received from database,respective worktype check box needs to be checked. any suggestions,please.
Find more posts tagged with
Comments
mwilliams
Hi tirumala_d,
Can you explain a little more about what you've got and what you're trying to do? If possible, could you create an example using the sample database, with a similar scenario, so that I can see it? Thanks.
tirumala_d
"WorkType" is one response parameter from my query."worktype" can have one of CM,EM,PM.These three check boxes should be displayed in my report and based on "worktype" received from database respective check box should be selected.<br />
<br />
Ex: If "worktype" is CM,CM checkbox should be checked.<br />
<br />
[]CM <br />
[]EM <br />
[]PM<br />
<br />
I got script to select checkbox based on input parameter.<br />
The following is the script to select "PM" checkbox,if "dsp_worktype" parameter value is "PM"<br />
<br />
<strong class='bbc'><input type="checkbox" name="mycheckbox2" <VALUE-OF>if( params["dsp_worktype"].value=="PM"){<br />
"checked";<br />
}else{<br />
"";<br />
}</VALUE-OF>>PM</input></strong>
mwilliams
tirumala_d,
So, you got it working as you want?