PHP Code:
// This is the NAME field
'nwc_shortterm_nwc_interestrepayments_name' =>
array (
'name' => 'nwc_shortterm_nwc_interestrepayments_name',
'type' => 'relate',
'source' => 'non-db',
'vname' => 'LBL_NWC_SHORTTERM_NWC_INTERESTREPAYMENTS_FROM_NWC_SHORTTERM_TITLE',
'save' => true,
'id_name' => 'nwc_shortt3910ortterm_ida',
'link' => 'nwc_shortterm_nwc_interestrepayments',
'table' => 'nwc_shortterm',
'module' => 'nwc_ShortTerm',
'rname' => 'name',
),
// This is the ID
'nwc_shortt3910ortterm_ida' =>
array (
'name' => 'nwc_shortt3910ortterm_ida',
'type' => 'link',
'relationship' => 'nwc_shortterm_nwc_interestrepayments',
'source' => 'non-db',
),
),
PHP Code:
'NWC_SHORTTERM_NWC_INTERESTREPAYMENTS_NAME' =>
array (
'width' => '15%',
'label' => 'LBL_NWC_SHORTTERM_NWC_INTERESTREPAYMENTS_FROM_NWC_SHORTTERM_TITLE',
'module' => 'nwc_ShortTerm',
'id' => 'nwc_shortt3910ortterm_ida',
'widget_class' => 'SubPanelDetailViewLink',
'target_record_key' => 'nwc_shortt3910ortterm_ida',
'target_module' => 'nwc_shortterm','
'link' => true,
'default' => true,
'ACLTag' => 'nwc_ShortTerm',
'related_fields' => array('nwc_shortt3910ortterm_ida),
),
Have a look at the target.... entries above - should work.
Bookmarks