<br><div class="gmail_quote">Hi All, <br><br>I want to associate custom module to another Custom Module , its not working fine for me<br><br>Actually Standard Module assoicated to Custom Module Working Fine , but the same process not working to associate between custom Modules<br>
<br>I used the setRelatedModule() function to associate the <b>Contacts</b> Module to Custom Module<b>(Payslip)</b><br><br>the same thing not working for Custom Module<br><br>I was facing this problem since two days, please help out of this problem<br>
<?php<br> ini_set('display_errors',On);<br>
ini_set('error_reporting',E_ALL & ~E_NOTICE & E_DEPRECATED);<br> include_once('vtlib/Vtiger/Module.php');<br><br><br> $Vtiger_Utils_Log = true;<br> include_once('vtlib/Vtiger/Utils.php');<br>
include_once('vtlib/Vtiger/Menu.php');<br> include_once('vtlib/Vtiger/Module.php');<br><br> $moduleInstance=Vtiger_Module::getInstance('Telemarketer');<br> $moduleInstance->initWebservice();<br>
<br> $blockInstance = new Vtiger_Block();<br> $blockInstance->label = 'LBL_TELEMARKETER_INFORMATION';<br> $moduleInstance->addBlock($blockInstance);<br><br> $fieldInstance = new Vtiger_Field();<br>
$fieldInstance->name = 'LinkToSalesMen';<br> $fieldInstance->table = 'vtiger_telemarketer';<br> $fieldInstance->label='Link To SalesMen';<br> $fieldInstance->column = 'linktosalesmen';<br>
$fieldInstance->columntype = 'int(19)';<br> $fieldInstance->uitype = 10;<br> $fieldInstance->typeofdata = 'V~M';<br><br> $blockInstance->addField($fieldInstance);<br><br> $fieldInstance->setRelatedModules(Array('SalesMen'));<br>
<br> ?><br>This is the Script i used <br><br>after open the popup i got the below warning<br><br><font><u><b>Warning: Invalid argument supplied for foreach() in C:\wamp\www\vtigercrm510\include\utils\ListViewUtils.php on line <i>1400</i></b></u></font><br>
<br>Please anybody suggest to overcome this problem<br><br>Please.............................................<br><br>Thanks & Regards,<br>B.Ramya.<br><br><br><br>
</div><br>