Hi,<br><br>You can create a relation field on one of them with a vtlib script like this:<br><br><?php<br>require_once 'vtlib/Vtiger/Block.php';<br><br>//Some block on the service contract module<br>$blockInstance = Vtiger_Block::getInstance(blockNumber);<br>
<br>$fieldInstance = new Vtiger_Field();<br>$fieldInstance->name = 'rel_product';<br>$fieldInstance->label = 'Product';<br>$fieldInstance->table = 'vtiger_servicecontractscf';<br>$fieldInstance->column = 'rel_product';<br>
$fieldInstance->columntype = 'VARCHAR(255)';<br>$fieldInstance->uitype = 10;<br>$fieldInstance->typeofdata = 'V~O';<br><br>$blockInstance->addField($fieldInstance);<br><br>$fieldInstance->setRelatedModules(Array('Products'));<br>
<br>?><br><br>Maybe that will do the trick for you.<br><br>Cheers<br><br>Nicolas<br><br><div class="gmail_quote">2012/1/25 Revathy Sankaranarayanan <span dir="ltr"><<a href="mailto:revathy.sankaran@sybrant.com">revathy.sankaran@sybrant.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>I would like to know how we can associate a service contract with a product. <br><br>Urgent Help is appreciated.<br clear="all">
<br><p><a name="13512b793418aa20_SafeHtmlFilter_12d7e190c10f16b7_SafeHtmlFilter_SafeHtmlFilter__MailAutoSig"><span style="font-size:10pt;color:rgb(36,64,97)">Regards<font color="#000000"><br>
</font></span></a><b><span style="font-size:12pt;font-family:"Times New Roman","serif";color:rgb(36,64,97)">Revathy S</span></b><span style="font-family:Arial,sans-serif;color:rgb(36,64,97)"></span><br>
</p><br>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br>