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)
creating checkbox
sbpradeep
<p>hi,</p>
<p>i want to render a checkbox in birt report and checking/non checking of this depends on a the value of a field in database. i have created a dataset for getting value of this field .</p>
<p>can anyone help me out doing this? </p>
Find more posts tagged with
Comments
Virgil Dodson
<p>moving to Designing BIRT Reports forum</p>
mwilliams
Are you wanting to use a HTML checkbox or alternate an image of a checked box and an unchecked box? Let me know.<br><br>Also, what is your BIRT version and can you explain a little more? Is it one checkbox? Or a checkbox per row?
sbpradeep
<p>Thanks michael, for the quick response.</p>
<p>I wan t to use checkbox as an html checkbox. in my database a filed has values as ("Y" or "N"). based on the value of this field i want to make it as checked (if the value is "Y") or unchecked (if the value is "N") . I have created a dataset in which i am getting the value of that database field.</p>
<p>but how can I compare the value of that dataset column in html and make checkbox checked or unchecked? is there a way to do this?</p>
<p> </p>
<p>There are two checkbox one for yes and one for no and at a time one can be checked based on the value ("Y" or "N").</p>
<p> </p>
<p>for the BIRT version following is the xml source of birt file </p>
<p><report xmlns=<i>"<a data-ipb='nomediaparse' href='
http://www.eclipse.org/birt/2005/design'>http://www.eclipse.org/birt/2005/design"</a></i>
; version=<i>"3.2.17"</i> id=<i>"1"</i>></p>
<p><property name=<i>"createdBy"</i>>Eclipse BIRT Designer Version<strong> 2.3.2.r232_20090202 </strong>Build <2.3.2.v20090218-0730></property></p>
<p><property name=<i>"units"</i>>in</property></p>
<p><property name=<i>"iconFile"</i>>/templates/first_report.<u>gif</u></property></p>
<p><property name=<i>"cheatSheet"</i>><u>org</u>.eclipse.<u>birt</u>.report.designer.<u>ui</u>.<u>cheatsheet</u>.<u>firstreport</u></property></p>
<p><property name=<i>"bidiLayoutOrientation"</i>><u>ltr</u></property></p>
<p> </p>
<p>Thanks,</p>
<p>Pradeep</p>
mwilliams
In a text box with HTML selected from the drop down, you can build html check boxes and pull data from the report using the <value-of> tag. Let me know if you have more questions on how to do this or if you need an example.
sbpradeep
<p>yes , iam able to create it with this approach ,</p>
<p>however while previewing i am able to see checkboxes working but on generating report as pdf checkboxes disappear.</p>
<p> </p>
<p>is there any way to achieve this??</p>
<p> </p>
<p>Thanks,</p>
<p>Pradeep</p>
mwilliams
You'll have to use images for pdf. Have one with yes selected and one with no selected and swap them out based on your data.