you can either retrieve the name in php code (probably in a fill_in_additional* function) and display the result or you can do something like this (this works in the listview and should also work in the detailview):
PHP Code:
'account_id' =>
array (
'required' => false,
'name' => 'account_id',
'vname' => '',
'type' => 'id',
'massupdate' => 0,
'comments' => '',
'help' => '',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => 0,
'audited' => 0,
'reportable' => 0,
'len' => 36,
),
'account' =>
array (
'required' => true,
'source' => 'non-db',
'name' => 'account',
'vname' => 'LBL_ACCOUNT',
'type' => 'relate',
'massupdate' => 1,
'comments' => '',
'help' => '',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => 0,
'reportable' => 0,
'len' => '255',
'id_name' => 'account_id',
'ext2' => 'Accounts',
'module' => 'Accounts',
'quicksearch' => 'enabled',
'studio' => 'visible',
'rname' => 'name',
'link' => 'account_link',
),
'account_link' =>
array (
'name' => 'account_link',
'type' => 'link',
'relationship' => 'account_search',
'vname' => 'LBL_ACCOUNT',
'link_type' => 'one',
'module' => 'Accounts',
'bean_name' => 'Account',
'source' => 'non-db',
),
along with the relationship:
PHP Code:
'relationships'=>array (
'account_search' =>
array (
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'oqc_ExternalContract',
'rhs_table' => 'oqc_externalcontract',
'rhs_key' => 'account_id',
'relationship_type' => 'one-to-many',
),
),
Bookmarks