AnsweredAssumed Answered

add flex relate field to subpanel

Question asked by Mike Solomon on Oct 21, 2015
I have added a flex relate field to a subpanel using studio

The field parent_name does not populate

Code:

'parent_name' =>
  array (
    'type' => 'parent',
    'studio' => 'visible',
    'vname' => 'LBL_PARENT',
    'link' => true,
    'sortable' => false,
    'ACLTag' => 'PARENT',
    'dynamic_module' => 'PARENT_TYPE',
    'id' => 'PARENT_ID',
    'related_fields' =>
    array (
      0 => 'parent_id',
      1 => 'parent_type',
    ),
    'width' => '10%',
    'default' => true,
    'widget_class' => 'SubPanelDetailViewLink',
    'target_module' => NULL,
    'target_record_key' => 'parent_id',
  ),

If I add the parent_id & the parent_type to the subpanel then the parent name is populated

How can I fix this?

Outcomes