[Vtigercrm-developers] Module Designer for Vtiger 6

Jonathan Sardo sardoj at gmail.com
Wed Mar 5 16:01:27 GMT 2014


Hello,

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]

Regards,

Jonathan SARDO
[image: Images intégrées 5]


2014-03-05 15:18 GMT+01:00 fxask <fxaskcom at gmail.com>:

> Hello
> I have the following problem.
> Please help me, tks.
> Sorry for my bad English.. :)
>
> 1) I create a new module named 'Tdc2' by Module Designer
> 2) I wish to have a related module field there (Accounts module). to do
> this
> I use Module Related Field in Blocks&Fields and place there a new record
> named 'Organization'.
> 3) I create and install the new Module 'Tdc2' and all works properly.
> 4) Now I wish to have 'Tdc2' as related list module in 'Accounts'. I do
> this
> using vtlib
>
> include_once('vtlib/Vtiger/Module.php');
> $moduleInstance = Vtiger_Module::getInstance('Accounts');
> $accountsModule = Vtiger_Module::getInstance('Tdc2');
> $relationLabel  = 'TDC';
> $moduleInstance->setRelatedList(
>       $accountsModule, $relationLabel, Array('ADD','SELECT')
> );
>
> All rights. All works properly.
> Now, if I create a new Tdc2 record from Accounts-Tdc2 related module I have
> the new Tdc2 record related to the account and the same Tdc2record in Tdc2
> Module - List view.
>
> Where is the problem? *If I create a new Tdc2 record from 'Tdc2' module
> directly, I select the Account name and save it but .. I see it in the tdc2
> - List view module NOT IN account - tdc2 related module.*
> Do I have to use some function ?
>
> I hope it's clear.
> Tks a lot in advance
>
>
>
>
>
> --
> View this message in context:
> http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-Module-Designer-for-Vtiger-6-tp8893p9671.html
> Sent from the vtigercrm-developers mailing list archive at Nabble.com.
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140305/8d912c9a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 4223 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140305/8d912c9a/attachment-0001.png>


More information about the vtigercrm-developers mailing list