Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Checkbox - 'checked' based on data
Migrateduser
Hi All,<br />
<br />
I'm trying to create a report in which I need checkboxes in the output coloumn. The checkbox should be checked/uncheked based on data.<br />
<br />
I used the below code in fetch method.<br />
<br />
<span style='font-family: Courier New'><em class='bbc'>var checked;<br />
<br />
if(maximoDataSet.getString("ticketid")=="1183")<br />
{<br />
checked="checked";<br />
}<br />
else<br />
{<br />
checked="";<br />
}<br />
<br />
check = "<input name='checkGroup' value='chk1' type='checkbox' "+checked+" >";</em></span><br />
<br />
I used the variable 'check' inside a dynamic text. <br />
<br />
I tried scriptlogger to see if the variable changes value for ticketid-1183 and it shows the value changed for that ticketid. But, in the output, the value is unchecked for all data.<br />
<br />
Please provide your inputs on this and also suggest some other ways of implementing this fucntionality.<br />
<br />
Thanks & Regards,<br />
Sankar Ganesh
Find more posts tagged with
Comments
There are no comments yet