AnsweredAssumed Answered

Relate field is empty after saving

Question asked by Vlad Vlad on Jan 21, 2015
Latest reply on Jan 21, 2015 by Rolustech Rolustech
I created relate field in Accounts module and I want to choose person from Contacts. The relate field works fine, I have an "arrow" to choose person. But when I save it, this field is empty. 

I think I made some mistake, but I don't know where. Here is my code from .custom\Extension\modules\Accounts\Ext\Vardefs\vardefs.php
$dictionary['Account']['fields']['main_contact'] = array (
    'name' => 'main_contact',
    'id_name' => 'main_contact_id',
    'type' => 'relate',
    'rname' => 'full_name',
    'vname' => 'LBL_MAIN_CONTACT',
    'link' => 'contacts',
    'module' => 'Contacts',
    'source' => 'non-db',
    'dbType' => 'non-db',
);
If I need give more information, please ask.

Outcomes