Mirror the primary key column value in a global variable Default: This has been rendered obsolete by the keyVariable property.
This is useful when you want need to access the primary key of the currently selected record. The variable defined in keyColVariable is automatically set to the primary key value as soon as it becomes available.
Note that if a new record is inserted into a table, we are unable to set the keyColVariable correctly.Syntax
$lens->keyColVariable = 'ID';
$lens->Render();
print $ID; # now the global var $ID is set to the primary key value Basic:Yes Advanced/Enterprise:Yes DynamicEdit:Yes [Version 1.0]
|