Row_Updated CurrentAction Edit

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
konfuzion
User
Posts: 378

Row_Updated CurrentAction Edit

Post 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.


mobhar
User
Posts: 11660

Post by mobhar »

Try update instead of edit.


konfuzion
User
Posts: 378

Post 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


mobhar
User
Posts: 11660

Post by mobhar »

Then you may check the value of key_m[] value to distinguish it as Multi-Update action.


konfuzion
User
Posts: 378

Post 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
// ...
}


mobhar
User
Posts: 11660

Post by mobhar »


konfuzion
User
Posts: 378

Post by konfuzion »

:D a creative way to share short-lived data without touching Session()


Post Reply