Hi,<br><br>setRelatedList API takes one more parameter function_name, <br>by default it is set to get_relatedlists (implemented in CRMEntity.php)<br><br>You will need to implement custom version of it in your class and <br>
provide the name when setting up related list.<br><br>Regards,<br>Prasad<br><br><div><span class="gmail_quote">On 5/19/10, <b class="gmail_sendername">Trifon Trifonov</b> <<a href="mailto:trifon.trifonov@catura.de">trifon.trifonov@catura.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Developers,<br> <br> On vTiger 5.1.0 with vTlib i know how to define relation between modules:<br> <br> include_once('vtlib/Vtiger/Menu.php');<br> include_once('vtlib/Vtiger/Module.php');<br> <br> // Relate Project module with Accounts<br>
$module = Vtiger_Module::getInstance('Project');<br> $module->setRelatedList(Vtiger_Module::getInstance('Accounts'),<br> 'Accounts', Array('ADD','SELECT'));<br> <br> Above code is working very well. It shows All Accounts related to<br>
specific Project.<br> <br> I'm trying to add second relation(let's name it Fathers) but<br> unfortunately it shows again the same records as the first(Accounts).<br> $module->setRelatedList(Vtiger_Module::getInstance('Contacts'),<br>
'Fathers', Array('ADD','SELECT'));<br> <br> Can you please advice if this is possible?<br> In case not i would like to add such capabilities to vTiger. Would<br> appreciate comments in what direction to look in order to develop it.<br>
<br> Regards,<br> Trifon<br> ----<br> <a href="http://www.catura.de">www.catura.de</a><br> _______________________________________________<br> Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br>
</blockquote></div><br>