Hello all!<div><br></div><div>Can someone tell me what are the options for conditioning in events?</div><div><br></div><div>'moduleName in ['Contacts','Accounts']' doesnt do a trick! </div><div>I looked inside code and saw that its possible to do equations too. So i tried moduleName=='MyModule' no luck there too.</div>
<div><br>
</div><div>I get error msg saying that my condition is invalid.</div><div>To register event i used this code:</div><div><div><br></div><div>require 'include/events/include.inc';</div><div> $em = new VTEventsManager($adb);</div>
<div> $em->registerHandler('vtiger.entity.beforesave.modifiable', 'modules/MyModule/MyModuleHandler.php', 'MyModuleHandler', 'moduleName in [\'MyModule\']');</div></div><div>
<br></div><div>I have realized that table vtiger_fieldformulas is empty!!! Should it be empty? My last log msg is:</div><div><div><br></div><div>DEBUG index - Prepared sql query being executed : SELECT * FROM vtiger_eventhandlers WHERE is_active=true</div>
<div>DEBUG index - Prepared sql query being executed : select * from vtiger_fieldformulas where modulename=?</div></div><div>DEBUG index - Prepared sql query parameters : [MyModule]</div><div><br></div><div>What I have to put in vtiger_fieldformulas? And why doesnt registerHandler update this table?</div>
<div><br></div><div>Darjan Prtic</div>