[Vtigercrm-developers] vtiger summary view problem
Lucia Digirolamo
l.digirolamo at websonica.net
Tue Jan 27 13:55:11 GMT 2015
I (think I) found the problem: I created the custom fields of my module
from the gui interface of vtiger: this way when I checked the 'summary
view' option, the related list didn't display the records anymore. But if I
create my custom field via php code and then I check the 'summary view'
option for the new field, the custom field is displayed correctly in the
related list with all the records
2015-01-27 7:17 GMT+01:00 Uma S <uma.s at vtiger.com>:
> Hi,
>
> Thanks! for clarification regarding the issue, If you find hard to explain
> the issue it would be better if you can upload screen-shots for same which
> can provide more clarification on the issue.
>
> When you enable any custom field created for summary view, it's breaking
> right. In this case check the that is been executed and see if there are
> records satisfying this conditions in your database. This will give clue
> regarding the issue.
>
> On Mon, Jan 26, 2015 at 9:38 PM, Lucia Digirolamo <
> l.digirolamo at websonica.net> wrote:
>
>> thanks for your help, sorry if i'm not clear, english is not my
>> mothertongue language, i'll try to explain better
>>
>> 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.
>>
>> Thanks again for your support
>>
>>
>>
>>
>>
>> 2015-01-26 15:25 GMT+01:00 Uma S <uma.s at vtiger.com>:
>>
>>> 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
>>>
>>> _______________________________________________
>>> http://www.vtiger.com/
>>>
>>
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>
>
>
> --
> With
> Best Regards
> Uma.S
> Vtiger Team
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150127/e464fe47/attachment-0001.html>
More information about the vtigercrm-developers
mailing list