[Vtigercrm-developers] vtiger summary view problem
Lucia Digirolamo
l.digirolamo at websonica.net
Mon Jan 26 12:53:27 GMT 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150126/9d513718/attachment.html>
More information about the vtigercrm-developers
mailing list