Hi Experts,in PHPMaker V2022.5
// Row Custom Action event
function Row_CustomAction($action, $row)
{
if ($action == "ho_ok") { // Check action name
$rsnew = ["ho_approved" => "Yes", "aproval3_time" => date("Y-m-d H:i:s")]; // Array of field(s) to be updated
$result = $this->update($rsnew, ["id" => $row["id"]]);
if (!$result) { // Failure
$this->setFailureMessage("Failed to update record, ID = " . $row["ID"]);
return false; // Abort and rollback
} elseif ($this->SelectedIndex == $this->SelectedCount) { // Last row
$this->setSuccessMessage("Selected record(s) updated.");
}
return true; // Success
}
// Return false to abort
return true;
}
After click on action event list auto reload LIST (without page refresh) after udpate field name ho_approved.Action | Id | Store Approval | Time | Ac Approval | Time | H.O. Approval | Time
Options | 1 | | | | | Yes | 13/08/2024 14:08
Options | 2 | | | | | |
Options | 3 | | | | | |
Options | 4 | | | | | |
Please any help.
Thanks
W.Rgrds