<div dir="ltr"><div class=""><img class="" id=":jn" src="https://mail.google.com/mail/u/0/images/cleardot.gif" alt=""></div><div>Hi <br></div>Please try the following code to  two create a relationship  between the modules.<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><?php<br><br>include_once('vtlib/Vtiger/Module.php');<br>$moduleInstance = Vtiger_Module::getInstance('Potentials');<br>$customModule = Vtiger_Module::getInstance('<custommodulename>');<br>$relationLabel  = '<custommodulename>';<br>$moduleInstance->setRelatedList(<br>    $customModule, $relationLabel, Array('ADD','SELECT'),'get_dependents_list');<br>print_r("Relation ship added"); <br>print_r("Now you can relate the Custom module to Potentials from the Potentialsottential related Tab "); <br><br></blockquote><br><div><br></div><div>Regards,<br></div><div>Manu Urs<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 8, 2015 at 4:25 PM, Greg Vas <span dir="ltr"><<a href="mailto:greg7vas@gmail.com" target="_blank">greg7vas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I have made a custom module and i relate it to potentials.</div><div><br></div><div>When i go to potentials and see the related module in the right bar there are no entries. It is empty.</div><div><br></div><div>How can i fix that to make the connection?</div></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Regards,<br></div>Manu<br></div></div>
</div>