Hello all!<div><br></div><div>Can someone tell me what are the options for conditioning in events?</div><div><br></div><div>&#39;moduleName in [&#39;Contacts&#39;,&#39;Accounts&#39;]&#39; doesnt do a trick! </div><div>I looked inside code and saw that its possible to do equations too. So i tried moduleName==&#39;MyModule&#39; 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 &#39;include/events/include.inc&#39;;</div><div>        $em = new VTEventsManager($adb);</div>


<div>        $em-&gt;registerHandler(&#39;vtiger.entity.beforesave.modifiable&#39;, &#39;modules/MyModule/MyModuleHandler.php&#39;, &#39;MyModuleHandler&#39;, &#39;moduleName in [\&#39;MyModule\&#39;]&#39;);</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>