<div dir="ltr"><div><div><div><div>Hi <br><br>You can able to create a  UI type 10  field ,which relate to the same module .The below code will create a  UI type 10 field for contact which relate to contact module itself.<br><br><br></div></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><?php<br>require_once 'includes/Loader.php';<br>ini_set("error_reporting", 6135);<br>include_once 'include/utils/utils.php';<br><br>$proInstance = Vtiger_Module_Model::getInstance('Contacts');<br>if($proInstance){<br>$fieldInstance = Vtiger_Field_Model::getInstance('contact', $proInstance);<br>if ($proInstance !== false && !$fieldInstance) {<br>$blockInstance = Vtiger_Block_Model::getInstance('LBL_CONTACT_INFORMATION', $proInstance);<br>       $field              = new Vtiger_Field();<br>       $field->name        = 'contact';<br>       $field->label       = 'Contact Name';<br>       $field->uitype      = 10;<br>       $field->typeofdata  = 'I~O';<br>       $blockInstance->addField($field);<br>       $field->setRelatedModules(Array('Contacts'));<br>       echo "<br> Contact- Contact  relation ship added";<br>   }<br>}<br>?><br></blockquote><br><br></div>Regards,<br></div>Manu Urs<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 12, 2015 at 12:46 AM, Conrado Maggi <span dir="ltr"><<a href="mailto:comaggi@gmail.com" target="_blank">comaggi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>Vtiger expect to found 1 related field between two modules, that's why your related list does not work.</div><div><br></div><div>The solution is to create a custom function to retrieve the related records </div><div><br></div><div>Regards </div><div><span class="HOEnZb"><font color="#888888">Conrado </font></span><div><div class="h5"><span></span><br><br>El jueves, 11 de junio de 2015, marlos22 <<a href="mailto:marlos22@hotmail.it" target="_blank">marlos22@hotmail.it</a>> escribió:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi<br>
<br>
it's possibile create a releted list with Utype 10 field in the same module<br>
(custom module)<br>
<br>
i create this whit a vtiger field generator but in releted list don't see<br>
the releted records<br>
<br>
<<a href="http://vtiger-crm.2324883.n4.nabble.com/file/n16537/filed_utype10.gif" target="_blank">http://vtiger-crm.2324883.n4.nabble.com/file/n16537/filed_utype10.gif</a>><br>
<br>
<<a href="http://vtiger-crm.2324883.n4.nabble.com/file/n16537/relation.gif" target="_blank">http://vtiger-crm.2324883.n4.nabble.com/file/n16537/relation.gif</a>><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtiger-crm.2324883.n4.nabble.com/releted-list-in-same-module-tp16537.html" target="_blank">http://vtiger-crm.2324883.n4.nabble.com/releted-list-in-same-module-tp16537.html</a><br>
Sent from the vtigercrm-developers mailing list archive at Nabble.com.<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div></div></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" 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>