Hi.
In order to get a more flexible handling of save/update/delete result I introduced a component like ResultHdl in attachment and in SqlElement I added the functions listed in resultcall.txt in attachment.
Now getLastOperationStatus status is useless or can be reduced as
public function getLastOperationStatus($result)
{
return $result->status;
}
The function displayLastOperationStatus changes to
public function displayLastOperationStatus($result)
{
if ($result->status == "OK" or $result->status == "NO_CHANGE" or $result->status == "INCOMPLETE") {
Sql::commitTransaction();
} else {
Sql::rollbackTransaction();
}
echo $result->formatMessage();
return $result->status;
}
Your proposale hase been integrated (not used yet)