

{
targets: [ 5 ], // assigned
render: function ( data, type, row, meta ) {
if(type === 'display'){
if(data == 'true') {
data = '<input type="checkbox" disabled="disabled" checked="checked" />';
} else {
data = '<input type="checkbox" disabled="disabled"/>';
}
return data;
}
}
4D
For each ($oRecord; $oRecords)
// ADD TO DATATABLES (JSON)
If ($oRecord.active)
$txtActive:="<input type='checkbox' disabled='disabled' checked='checked'/>"
Else
$txtActive:="<input type='checkbox' disabled='disabled'/>"
End if
$oDataTable.push(New collection($oRecord.ID; $oRecord.name; $txtActive; ""))
End for each
--
You received this message because you are subscribed to a topic in the Google Groups "Lightning - 4D Web Applications" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lightning-4d-web-apps/ZidRBzBvg3Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lightning-4d-web...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lightning-4d-web-apps/dd501255-ed63-46cb-b843-524f3fff1c19n%40googlegroups.com.



--


--
If ($oRecord.active)
$txtActive:="<input type='checkbox' disabled='disabled' checked='checked'/>"
Else
$txtActive:="<input type='checkbox' disabled='disabled'/>"
End if
Question is can I put an onclick ltgExecuteMethod with this?
I have an included form in the detail HTML which contains a checkbox. I'm having a little trouble with the correct syntax. I write:
If ($oPcp.attended)
$txtAttended:="<input type='checkbox' checked='checked' onclick=\"ltgExecuteMethod('PersonObject_checkbox',row[1])\" />"
Else
$txtAttended:="<input type='checkbox' onclick=\"ltgExecuteMethod('PersonObject_checkbox',row[1])\" />"
End if

The method is not being called.
I tried other variations, and 4D likes to put double backslash.




For each ($oRecord; $oRecords)
// ADD TO DATATABLES (JSON)
If ($oRecord.active)
$txtActive:="<input type='checkbox' disabled='disabled' checked='checked'/>"
Else
$txtActive:="<input type='checkbox' disabled='disabled'/>"
End if
$oDataTable.push(New collection($oRecord.ID; $oRecord.name; $txtActive; ""))
End for each
--
You received this message because you are subscribed to the Google Groups "Lightning - 4D Web Applications" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lightning-4d-web...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lightning-4d-web-apps/3024fb11-10d4-4f14-8a3d-7e6d52428de6n%40googlegroups.com.
