<div dir="ltr"><div>thanks for your help, sorry if i'm not clear, english is not my mothertongue language, i'll try to explain better<br><br></div><div>When I go to related list inside Organizations, I see the records correctly. The columns shown in the list are only 'name' and 'assigned to'. But in my custom module I created other fields and I'd like some of them to show on the related list as well. What I did to achieve this was to edit the field of my custom module and checked the option 'summary view'. After this, in the related list of Organizations, the new column title is showing with 'name' and 'assigned to', but the record doesn't show as if the list was empty. If I uncheck 'summary view' from my field in my custom module, the related list of organizations display the records correctly again. <br><br></div><div>Thanks again for your support<br></div><div><br><br></div><div><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-26 15:25 GMT+01:00 Uma S <span dir="ltr"><<a href="mailto:uma.s@vtiger.com" target="_blank">uma.s@vtiger.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Please make the below point clear.</div><div><br></div><div><span style="font-size:13px"><i>Everything works fine except that I cannot edit in anyway the columns showed in the related list. So: when I go in Organizations and click on the relation label (called 'test' in the code above), the records are showed but if I go in my costume module and check 'summary view' to have another field shown as well in the related list, then the related list in Organizations is empty.</i></span><br></div><div><span style="font-size:13px"><i><br></i></span></div><div><span style="font-size:13px">When you edit custom field related to organizations module in custom module, then Custom reated-list in organizations module goes empty?</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 26, 2015 at 6:23 PM, Lucia Digirolamo <span dir="ltr"><<a href="mailto:l.digirolamo@websonica.net" target="_blank">l.digirolamo@websonica.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>hi, <br><br></div>I created a custom module with the vtlib tool console.php, then i added a uitype10 field and created a relation with Accounts using this code: <br><br><?php<br>$Vtiger_Utils_Log = true;<br>include_once('vtlib/Vtiger/Module.php');<br>include_once('vtlib/Vtiger/Menu.php');<br>$account = Vtiger_Module::getInstance('Accounts');<br>$custom = Vtiger_Module::getInstance('Test');<br>$block = Vtiger_Block::getInstance('LBL_Test_Informations', $custom);<br><br>$field = new Vtiger_Field();<br>$field->name = 'account_id';<br>$field->label = 'Account';<br>$field->table = 'vtiger_test';<br>$field->column = 'account_id';<br>$field->columntype = 'VARCHAR(255)';<br>$field->uitype = 10;<br>$field->typeofdata = 'V~O';<br>$block->addField($field);<br>$field->setRelatedModules(Array('Accounts'));<br>?><br><br></div>and<br><br><?php<br>$Vtiger_Utils_Log = true;<br><br>include_once('vtlib/Vtiger/Module.php');<br>$moduleInstance = Vtiger_Module::getInstance('Accounts');<br>$testModule = Vtiger_Module::getInstance('Test');<br>$relationLabel = 'Test';<br>$moduleInstance->setRelatedList(<br>$testModule, $relationLabel, Array('ADD'), get_dependents_list<br>);<br>?> <br><br></div>Everything works fine except that I cannot edit in anyway the columns showed in the related list. So: when I go in Organizations and click on the relation label (called 'test' in the code above), the records are showed but if I go in my costume module and check 'summary view' to have another field shown as well in the related list, then the related list in Organizations is empty.<br><br></div>Is there a way I can solve this problem? Now I can see only 'Name' and 'Assigned to' as columns in the related list and these are the infos that I need the least<br><br></div>Thanks<br><br></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>
</font></span></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>