FIXED: in vardefs.php adding
'notes' =>
array (
'name' => 'notes',
'type' => 'link',
'relationship' => 'contratos_notes',
'source'=>'non-db',
'vname'=>'LBL_NOTES',
),
Hello:
i'm trying create a subpanel following subpanels of Cases and http://www.sugarcrm.com/wiki/index.p...nels_Explained
but i have a problem.
My layout_defs
i got the error:Code:$layout_defs['Contratos'] = array( // list of what Subpanels to show in the DetailView 'subpanel_setup' => array( 'history' => array( 'order' => 30, 'sort_order' => 'desc', 'sort_by' => 'date_modified', 'title_key' => 'LBL_HISTORY_SUBPANEL_TITLE', 'type' => 'collection', 'subpanel_name' => 'history', //this values is not associated with a physical file. 'module'=>'History', 'top_buttons' => array( array('widget_class' => 'SubPanelTopCreateNoteButton'), array('widget_class' => 'SubPanelTopArchiveEmailButton'), array('widget_class' => 'SubPanelTopSummaryButton'), ), 'collection_list' => array( 'notes' => array( 'module' => 'Notes', 'subpanel_name' => 'ForHistory', 'get_subpanel_data' => 'notes', ), ) ), ), );
Fatal error: Call to a member function getQuery() on a non-object in /var/www/SugarCRM/data/SugarBean.php on line 1753
ok, if i change 'module' => 'Notes' for 'module' => 'History'
the error is:
Warning: aSubPanel::require(modules/History/subpanels/ForHistory.php)
this error is obviusly
more information:
vardefs:
Code:'indices' => array( array('name' =>'primary_key_index', 'type' =>'primary', 'fields'=>array('id') ), 'contratos_notes' => array('lhs_module'=> 'Contratos', 'lhs_table'=> 'contratos', 'lhs_key' => 'id', 'rhs_module'=> 'Notes', 'rhs_table'=> 'notes', 'rhs_key' => 'parent_id', 'relationship_type'=>'one-to-many', 'relationship_role_column'=>'parent_type', 'relationship_role_column_value'=>'Contratos') ),


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks