Page 1 of 1
Row_Updated CurrentAction Edit
Posted: Fri Dec 02, 2022 10:24 am
by konfuzion
in Row_Updated I want to execute code if the action was a normal edit
if ($this->CurrentAction == "edit") {
//do something
}
but it doesn't seem to be executing, what might be wrong?
I'm using Multi-Update also but I don't want to trigger the execute code after Multi-Update, I only want to execute code after a normal edit.
Re: Row_Updated CurrentAction Edit
Posted: Fri Dec 02, 2022 10:32 am
by mobhar
Try update
instead of edit
.
Re: Row_Updated CurrentAction Edit
Posted: Fri Dec 02, 2022 10:44 am
by konfuzion
using update
When perform multi-update the code executes
When perform normal edit, the code doesn't execute
actually I want in reverse:
When perform multi-update the code doesn't execute
When perform normal edit, the code executes
Re: Row_Updated CurrentAction Edit
Posted: Fri Dec 02, 2022 11:10 am
by mobhar
Then you may check the value of key_m[]
value to distinguish it as Multi-Update action.
Re: Row_Updated CurrentAction Edit
Posted: Fri Dec 02, 2022 12:49 pm
by konfuzion
in Row_Updated can I determine if action is edit or multi-update like this?:
if (empty($key_m[]))
{
// after edit execute following code
// ...
}
if (!empty($key_m[]))
{
// after multi-update execute following code
// ...
}
Re: Row_Updated CurrentAction Edit
Posted: Fri Dec 02, 2022 1:24 pm
by mobhar
Re: Row_Updated CurrentAction Edit
Posted: Fri Dec 02, 2022 1:50 pm
by konfuzion
:D a creative way to share short-lived data without touching Session()