You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicfunctiononEdit( $param )
{
try {
if (isset($param['key'])) {
$key = $param['key']; // get the parameter $key
TTransaction::open($this->database); // open a transaction$object = newContato($key); // instantiates the Active Record $this->form->setData($object); // fill the form
TTransaction::close(); // close the transaction
}else{
$this->form->clear();
}
} catch (Exception$e) {
newTMessage(TFormDinMessage::TYPE_ERROR, $e->getMessage()); // shows the exception error message
TTransaction::rollback(); // undo all pending operations
}
}
The text was updated successfully, but these errors were encountered:
FormList set class name e id
On Form create onEdit
The text was updated successfully, but these errors were encountered: