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> &lt;<a href="mailto:trifon.trifonov@catura.de">trifon.trifonov@catura.de</a>&gt; 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(&#39;vtlib/Vtiger/Menu.php&#39;);<br> include_once(&#39;vtlib/Vtiger/Module.php&#39;);<br> <br> // Relate Project module with Accounts<br>
 $module = Vtiger_Module::getInstance(&#39;Project&#39;);<br> $module-&gt;setRelatedList(Vtiger_Module::getInstance(&#39;Accounts&#39;),<br> &#39;Accounts&#39;, Array(&#39;ADD&#39;,&#39;SELECT&#39;));<br> <br> Above code is working very well. It shows All Accounts related to<br>
 specific Project.<br> <br> I&#39;m trying to add second relation(let&#39;s name it Fathers) but<br> unfortunately it shows again the same records as the first(Accounts).<br> $module-&gt;setRelatedList(Vtiger_Module::getInstance(&#39;Contacts&#39;),<br>
 &#39;Fathers&#39;, Array(&#39;ADD&#39;,&#39;SELECT&#39;));<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>