<div dir="ltr">Have a look at ModTrackerHandler - it uses EntityDelta to capture the changes.<div><br></div><div>There should not be any changes made during this event (vtiger.entity.aftersave.final) - you many however record the changes.</div>
<div><br></div><div>Regards,</div><div>Prasad</div></div><div class="gmail_extra"><br clear="all"><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><b>Connect with us on: </b><a href="http://twitter.com/vtigercrm" style="color:rgb(0,0,204)" target="_blank">Twitter</a> <b>I</b> <a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" style="color:rgb(0,0,204)" target="_blank">Facebook</a> <b>I</b> <a href="https://blogs.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Blog</a><b> I</b> <a href="http://wiki.vtiger.com/index.php/Main_Page" style="color:rgb(0,0,204)" target="_blank">Wiki</a> <b>I </b><a href="https://discussions.vtiger.com" style="color:rgb(0,0,204)" target="_blank">Forums </a><b>I</b> <a href="https://www.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Website</a></span></div>
<br><br><div class="gmail_quote">On Thu, Jul 10, 2014 at 1:58 AM, Holbok István <span dir="ltr"><<a href="mailto:holbok@gmail.com" target="_blank">holbok@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Dear vtiger Community,<br>
<br>
Is there any method to catch a field data change or modify event in
a vtiger module e.g. in Contacts?<br>
<br>
In the <modulename>Handler.php I can define for the event e.g.
'vtiger.entity.beforesave' a unique handler and I can access the
$entityData object for the record of the module. But I did not
realize how to know what is the change in this object before save.<br>
<br>
Is there any built in method to determine what a field was changed?<br>
<br>
I need to run an event handler in the frame of
'vtiger.entity.beforesave' or even 'vtiger.entity.aftersave' with a
specific ON_THIS_FIELD_MODIFIED condition.<br>
<br>
The vtiger Workflow manager somehow can handle this in case
VTWorkflowManager::$ON_MODIFY <br>
<br>
Any idea?<br>
<br>
Kindest regards:<br>
Istvan<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<div>-- <br>
üdvözlettel:<br>
<br>
<b>Holbok István</b><br>
<br>
+3670-342-0900<br>
<b>e-mail:</b> <a href="mailto:holbok@gmail.com" target="_blank">holbok@gmail.com</a><br>
<b>SkyPe:</b> holboki<br>
<br>
</div>
</font></span></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>