Hi André,
Thanks again!
Your indication for th three files gives me where I was wrong.....
I actucaly was using the wrong name in relation field. Now I am getting the Subpanel....
Here's teh code in three files (for benefit of friends who wil come here in search of similar concern)
custom/modules/Accounts/Ext/Layoutdefs/layoutdefs.ext.php
Code:
$layout_defs['Accounts']['subpanel_setup']['new_module'] = array(
'order' => 70,
'module' => 'New_Module',
'subpanel_name' => 'default',
'refresh_page' => 1,
'get_subpanel_data' => 'new_modules', // matches the name of the link field
'title_key' => 'LBL_SUBPANEL_MODULE',
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateButton'),
array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
),
); custom/modules/Accounts/Ext/Vardefs/vardefs.ext.php
Code:
$dictionary["Account"]['fields']['new_module'] = array (
'name' => 'new_module',
'type' => 'link',
'relationship' => 'new_module_accounts',
'source'=>'non-db',
'vname'=>'LBL_MEETING',
);
modules/new_mod/vardefs.php
Code:
'accounts" => array (
'name' => 'accounts',
'type' => 'link',
'relationship' => 'new_module_accounts',
'source' => 'non-db',
);
BUT....BUT something somewhere I am missing...I am getting the Subpanels, but then it shows me all the records, and not ONLY the connected records.....
Do I need to paste some other files/codes.
Thanks for the help
Regards
Bipul
Bookmarks