AnsweredAssumed Answered

How can I create a subpanel that populates data from a custom flex relate field?

Question asked by oursgris oursgris on Feb 17, 2014
Latest reply on Sep 18, 2015 by André Lopes
Hello
I followed that tutorial to create a flex related module between the Leads module and PRO_Profil module and then that tutorial to create a subpanel.
(in the table pro_profil, there is a creation of parent_id and parent_name)

This result with the creation of 2 files

custom\Extension\modules\Leads\Ext\Layoutdefs\_profil.php
 
<?php
$layout_defs["Leads"]["subpanel_setup"]['PRO_Profil'] = array ('order' => 130,
    'order' => 130,
    'module' => 'PRO_Profil',
    'get_subpanel_data'=>'PRO_Profil',
    'sort_order' => 'asc',
    'sort_by' => 'name',
    'subpanel_name' => 'default',
    'title_key' => 'LBL_TEST_FLEXPARENT',
);
custom\Extension\modules\Leads\Ext\Vardefs\infos.php
<?php
$dictionary['Lead']['fields']['PRO_Profil'] = array(
    'name' => 'PRO_Profil',
    'type' => 'link',
    'relationship' => 'profils_leads',
    'module' => 'PRO_Profil',
    'bean_name' => 'PRO_Profil',
    'source' => 'non-db',
    'vname' => 'LBL_TEST_FLEXPARENT',
);
?>
but no subpanel is shown
I have the feeling that sugarcrm 6.3 or 6.4 changed the system
where is the problem ?

regards

I tryied also :
http://forums.sugarcrm.com/f148/howto-prospect-list-subpanel-leads-sugarcem-6-4-maybe-6-3-a-78030/

Outcomes