Created
August 27, 2023 08:01
-
-
Save gridphp/4154071f305463a6f971b89d81fb0712 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$e["on_after_insert"] = array("after_insert", null, true); | |
$g->set_events($e); | |
function after_insert($data) | |
{ | |
// where client_id is primary key (first column of grid) | |
$id = $data["client_id"]; | |
phpgrid_msg("<script>location.href='$id';</script>") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment