Page 1 of 1

Email_Sending after Grid Edit

Posted: Wed Jul 26, 2017 9:25 pm
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!


Re: Email_Sending after Grid Edit

Posted: Thu Jul 27, 2017 9:44 am
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

Re: Email_Sending after Grid Edit

Posted: Tue Nov 14, 2017 9:04 pm
by anil

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


Re: Email_Sending after Grid Edit

Posted: Tue Nov 14, 2017 9:49 pm
by mobhar

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