<div dir="ltr">Hello,<div><br></div><div>I think you have to create into Accounts, a Related List with type get_dependents_list() [1-N Relation] instead of get_related_list() [N-N Relation]</div><div class="gmail_extra"><div>

<div dir="ltr"><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.727272033691406px;background-color:rgb(255,255,255)"><div><br></div><div>Regards,</div><div><br></div><div><div><font color="#666666">Jonathan SARDO</font></div>

<div></div><div style="color:rgb(136,136,136)"><img src="cid:ii_13df029e6cb01b67" alt="Images intégrées 5"></div></div></div></div></div>
<br><br><div class="gmail_quote">2014-03-05 15:18 GMT+01:00 fxask <span dir="ltr"><<a href="mailto:fxaskcom@gmail.com" target="_blank">fxaskcom@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello<br>
I have the following problem.<br>
Please help me, tks.<br>
Sorry for my bad English.. :)<br>
<br>
1) I create a new module named 'Tdc2' by Module Designer<br>
2) I wish to have a related module field there (Accounts module). to do this<br>
I use Module Related Field in Blocks&Fields and place there a new record<br>
named 'Organization'.<br>
3) I create and install the new Module 'Tdc2' and all works properly.<br>
4) Now I wish to have 'Tdc2' as related list module in 'Accounts'. I do this<br>
using vtlib<br>
<br>
include_once('vtlib/Vtiger/Module.php');<br>
$moduleInstance = Vtiger_Module::getInstance('Accounts');<br>
$accountsModule = Vtiger_Module::getInstance('Tdc2');<br>
$relationLabel  = 'TDC';<br>
$moduleInstance->setRelatedList(<br>
      $accountsModule, $relationLabel, Array('ADD','SELECT')<br>
);<br>
<br>
All rights. All works properly.<br>
Now, if I create a new Tdc2 record from Accounts-Tdc2 related module I have<br>
the new Tdc2 record related to the account and the same Tdc2record in Tdc2<br>
Module - List view.<br>
<br>
Where is the problem? *If I create a new Tdc2 record from 'Tdc2' module<br>
directly, I select the Account name and save it but .. I see it in the tdc2<br>
- List view module NOT IN account - tdc2 related module.*<br>
Do I have to use some function ?<br>
<br>
I hope it's clear.<br>
Tks a lot in advance<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-Module-Designer-for-Vtiger-6-tp8893p9671.html" target="_blank">http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-Module-Designer-for-Vtiger-6-tp8893p9671.html</a><br>


<div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br></div></div>