Hi, I’m trying to launch a page refresh after the confirmation message. Unfortunately it doesn’t work, can you help me?
// Row Custom Action event
function Row_CustomAction($action, $row) {
// Return FALSE to abort
// Get action from (ListOptions_Rendered)
$id = $row["idMovimento"];
$dataMov = $row["DataMovimento"];
if ($action == "storno_pos") {
$result = ExecuteRow("INSERT INTO.. ");
//Get new id
$idn = Conn()->Insert_ID();
$result = Execute("UPDATE .. ");
$result = Execute("UPDATE .. ");
// Return FALSE to abort
//$this->setFailureMessage("Failed to update record, ID = " . $row["idMovimento"]);
$this->setSuccessMessage("Movimento $id Stornato");
header("Refresh:1; url=../movimentilistalist.php");
}
return TRUE;
}