[Vtigercrm-developers] How to catch the module field modified in the vtiger 6 event-handler?

Holbok István holbok at gmail.com
Thu Jul 10 08:37:22 GMT 2014


Prasad, Thank you.

It is valuable help for me. The VTEntityDelta::hasChanged() method can 
show any modified fields and this is what I looked for.

Kindest regards:
Istvan


üdvözlettel:

*Holbok István*

+3670-342-0900
*e-mail:* holbok at gmail.com
*SkyPe:* holboki

2014.07.10. 0:41 keltezéssel, Prasad írta:
> Have a look at ModTrackerHandler - it uses EntityDelta to capture the 
> changes.
>
> There should not be any changes made during this event 
> (vtiger.entity.aftersave.final) - you many however record the changes.
>
> Regards,
> Prasad
>
> *Connect with us on: *Twitter <http://twitter.com/vtigercrm> *I* 
> Facebook 
> <http://www.facebook.com/pages/vtiger/226866697333578?sk=wall> *I* 
> Blog <https://blogs.vtiger.com/>* I* Wiki 
> <http://wiki.vtiger.com/index.php/Main_Page> *I *Forums 
> <https://discussions.vtiger.com>*I* Website <https://www.vtiger.com/>
>
>
> On Thu, Jul 10, 2014 at 1:58 AM, Holbok István <holbok at gmail.com 
> <mailto:holbok at gmail.com>> wrote:
>
>     Dear vtiger Community,
>
>     Is there any method to catch a field data change or modify event
>     in a vtiger module e.g. in Contacts?
>
>     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.
>
>     Is there any built in method to determine what a field was changed?
>
>     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.
>
>     The vtiger Workflow manager somehow can handle this in case
>     VTWorkflowManager::$ON_MODIFY
>
>     Any idea?
>
>     Kindest regards:
>     Istvan
>
>
>     -- 
>     üdvözlettel:
>
>     *Holbok István*
>
>     +3670-342-0900
>     *e-mail:* holbok at gmail.com <mailto:holbok at gmail.com>
>     *SkyPe:* holboki
>
>
>     _______________________________________________
>     http://www.vtiger.com/
>
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140710/83aeb0b0/attachment.html>


More information about the vtigercrm-developers mailing list