Row_Deleted Server Event

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

Row_Deleted Server Event

Post by ccplusit »

I am trying to run this function but cant seem to call the data I need to perform the function, any ideas please! If I manually put the AccountNumber number in and Id all works fine. But does not seem to find $this->AccountNumber->CurrentValue or $this->Id->CurrentValue;

function Row_Deleted(&$rs) {

echo $deleateaccountmail=$this->AccountNumber->CurrentValue ;
echo $deleatemailId=$this->Id->CurrentValue;


$client->deleteVoiceMail(array("Tokens"=> $tokens,"VoiceMailIn"=>array("AccountId"=>$deleateaccountmail,"VoiceMailId"=>$deleatemailId)));


}


mobhar
User
Posts: 11747

Post by mobhar »

As you can see, "Row_Deleted" event has an argument of the record deleted as an array.
So, simply use the following instead:
$deleateaccountmail = rs["AccountNumber"];
$deleatemailId = rs["$deleatemailId"];


mobhar
User
Posts: 11747

Post by mobhar »

Oops, typing too fast. The code should be:
$deleateaccountmail = $rs["AccountNumber"];
$deleatemailId = $rs["$deleatemailId"];


ccplusit
User
Posts: 102

Post by ccplusit »

Thanks that worked a treat, one to remember.


Post Reply