[Vtigercrm-developers] Related module issue
Manu urs
manu.k at vtiger.com
Mon Jun 8 11:33:01 GMT 2015
Hi
Please try the following code to two create a relationship between the
modules.
<?php
>
> include_once('vtlib/Vtiger/Module.php');
> $moduleInstance = Vtiger_Module::getInstance('Potentials');
> $customModule = Vtiger_Module::getInstance('<custommodulename>');
> $relationLabel = '<custommodulename>';
> $moduleInstance->setRelatedList(
> $customModule, $relationLabel,
> Array('ADD','SELECT'),'get_dependents_list');
> print_r("Relation ship added");
> print_r("Now you can relate the Custom module to Potentials from the
> Potentialsottential related Tab ");
>
>
Regards,
Manu Urs
On Mon, Jun 8, 2015 at 4:25 PM, Greg Vas <greg7vas at gmail.com> wrote:
> I have made a custom module and i relate it to potentials.
>
> When i go to potentials and see the related module in the right bar there
> are no entries. It is empty.
>
> How can i fix that to make the connection?
>
> _______________________________________________
> http://www.vtiger.com/
>
--
Regards,
Manu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150608/dd586f68/attachment.html>
More information about the vtigercrm-developers
mailing list