Answered
CFGRID cfinput type=checkbox
Hello
Could some please help me with a CFGRID question? Is there a way to check/uncheck a checkbox in a CFINPUT type=checkbox based on the value returned in a CFGRID? For example:
<cfgrid name="questiongrid" query="questionQuery" format="flash">
<cfgridcolumn name="ID" header="QID" display="YES" width="50" />
<cfgridcolumn name="QUESTION" header="QUESTION" width="400" />
<cfgridcolumn name="TESTNUMBER" header="SET" width="50" />
</cfgrid>
(A bolean value is returned for the column mandatory from the query 'questionQuery' above)
<cfinput type="Checkbox" name="mandatory" label="Mandatory Question" enabled="yes" bind="{questiongrid.dataProvider[questiongrid.selectedIndex]['mandatory']}" />
Any ideas? I seen lots of examples of how to do inside the datagrid, but not in a CFFORM input.
Thanks for your help. JK
Could some please help me with a CFGRID question? Is there a way to check/uncheck a checkbox in a CFINPUT type=checkbox based on the value returned in a CFGRID? For example:
<cfgrid name="questiongrid" query="questionQuery" format="flash">
<cfgridcolumn name="ID" header="QID" display="YES" width="50" />
<cfgridcolumn name="QUESTION" header="QUESTION" width="400" />
<cfgridcolumn name="TESTNUMBER" header="SET" width="50" />
</cfgrid>
(A bolean value is returned for the column mandatory from the query 'questionQuery' above)
<cfinput type="Checkbox" name="mandatory" label="Mandatory Question" enabled="yes" bind="{questiongrid.dataProvider[questiongrid.selectedIndex]['mandatory']}" />
Any ideas? I seen lots of examples of how to do inside the datagrid, but not in a CFFORM input.
Thanks for your help. JK
