Email_Sending after Grid Edit

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

Email_Sending after Grid Edit

Post by nyukuri »

Hello,

Email_Sending works fine when using the normal edit or inline edit.

  1. But when using GRID Edit I have no access to the following variables.
    $rsold = $Args['rsold'];
    $rsnew = $Args['rsnew'];
    Are they now two-dimensional arrays because more than one entry was changed? How to access them?

  2. And when in Email_Sending Event, how can I test if the user did a Grid Edit or a simple edit?

Thank you for your help!


Webmaster
User
Posts: 9427

Post by Webmaster »

  1. To check if a row is updated after grid edit, use:

if ($this->IsGridUpdated()) {
//...
}

  1. $rsold and $rsnew are array of rows when grid edit

anil
User
Posts: 24

Post by anil »

How to use parameters $rsold, $rsnew in Grid_Updated Event ?
Please give an example.


mobhar
User
Posts: 11702

Post by mobhar »

Please have a look at this topic: http://www.hkvforums.com/viewtopic.php?f=18&t=41434


Post Reply