[Vtigercrm-developers] Two and more Related list to the same module

Trifon Trifonov trifon.trifonov at catura.de
Wed May 19 07:21:20 PDT 2010


Hello Developers,

On vTiger 5.1.0 with vTlib i know how to define relation between modules:

include_once('vtlib/Vtiger/Menu.php');
include_once('vtlib/Vtiger/Module.php');

// Relate Project module with Accounts
$module = Vtiger_Module::getInstance('Project');
$module->setRelatedList(Vtiger_Module::getInstance('Accounts'),
'Accounts', Array('ADD','SELECT'));

Above code is working very well. It shows All Accounts related to
specific Project.

I'm trying to add second relation(let's name it Fathers) but
unfortunately it shows again the same records as the first(Accounts).
$module->setRelatedList(Vtiger_Module::getInstance('Contacts'),
'Fathers', Array('ADD','SELECT'));

Can you please advice if this is possible?
In case not i would like to add such capabilities to vTiger. Would
appreciate comments in what direction to look in order to develop it.

Regards,
Trifon
----
www.catura.de



More information about the vtigercrm-developers mailing list