AnsweredAssumed Answered

No information in relate field in ListView

Question asked by Vlad Vlad on Jan 21, 2015
Latest reply on Jan 22, 2015 by Vlad Vlad
I add my relate field in ListView, but there is only dashes where should be contact name. I think I just made a mistake somewhere, but I have no idea.

Code from listviewdefs.php
'MAIN_CONTACT' =>  array (
    'type' => 'relate',
    'link' => true,
    'label' => 'LBL_MAIN_CONTACT',
    'id' => 'main_contact_id',
    'module' => 'Contacts',
    'width' => '10%',
    'default' => true,
    'related_fields' => array('main_contact_id'),
Also I have fields main_contact and main_contact_id in vardefs.php. It works fine in EditView and DetailView.


I noticed that I can add there other custom fields and they will display. But they have type 'varchar', not 'relate'.