[Vtigercrm-developers] vtiger summary view problem
Uma S
uma.s at vtiger.com
Mon Jan 26 14:25:33 GMT 2015
Hi,
Please make the below point clear.
*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.*
When you edit custom field related to organizations module in custom
module, then Custom reated-list in organizations module goes empty?
On Mon, Jan 26, 2015 at 6:23 PM, Lucia Digirolamo <
l.digirolamo at websonica.net> wrote:
> hi,
>
> 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:
>
> <?php
> $Vtiger_Utils_Log = true;
> include_once('vtlib/Vtiger/Module.php');
> include_once('vtlib/Vtiger/Menu.php');
> $account = Vtiger_Module::getInstance('Accounts');
> $custom = Vtiger_Module::getInstance('Test');
> $block = Vtiger_Block::getInstance('LBL_Test_Informations', $custom);
>
> $field = new Vtiger_Field();
> $field->name = 'account_id';
> $field->label = 'Account';
> $field->table = 'vtiger_test';
> $field->column = 'account_id';
> $field->columntype = 'VARCHAR(255)';
> $field->uitype = 10;
> $field->typeofdata = 'V~O';
> $block->addField($field);
> $field->setRelatedModules(Array('Accounts'));
> ?>
>
> and
>
> <?php
> $Vtiger_Utils_Log = true;
>
> include_once('vtlib/Vtiger/Module.php');
> $moduleInstance = Vtiger_Module::getInstance('Accounts');
> $testModule = Vtiger_Module::getInstance('Test');
> $relationLabel = 'Test';
> $moduleInstance->setRelatedList(
> $testModule, $relationLabel, Array('ADD'), get_dependents_list
> );
> ?>
>
> 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.
>
> 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
>
> Thanks
>
>
> _______________________________________________
> http://www.vtiger.com/
>
--
With
Best Regards
Uma.S
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150126/b1b00834/attachment-0001.html>
More information about the vtigercrm-developers
mailing list