ajaxCRUD.com
» a PHP class to create / read / update / delete from a database table using AJAX
by loud canvas mediaAjaxCRUD API Reference
|
<< Reference overview << Home Object: ajaxCRUDConstructorFunctions
Variables |
disallowEditdisallows a field to be edited
void disallowEdit ( String fieldName )
Use this function to disable the ajax editing of a field in a table. This is often used for the fields where you want populated with data (on create) and never touched again (eg a Creation Datestamp).
This function can be used in conjunction with the addValueOnInsert method, so that fields such as "fldCreateDate" can be set when a row is created and then is not editable afterward.
Details
Parameters
Example$tblDemo->disallowEdit('fldCreationDate');
See also |
"Great api. Really love the demo. "
~Ade
