AnsweredAssumed Answered

sugarcrm7 custom subpanels by query, where clauses, and actions

Question asked by Francesca Shiekh on Jul 30, 2014
Latest reply on Mar 8, 2017 by Francesca Shiekh
I really would like to see more parallels in the documentation of v7...
Many things that used to be obvious and familiar are now a mystery...

In sugarCRM v6.5.x we could create sub panels based on functions using a function in the get_subpanel_data: 

get_subpanel_data' => 'function:<the_name_of_the_function>',
  'function_parameters' => array(
     'import_function_file' => '<the_path>/<the_file_with_the_function>.php',   
   ),

Any thoughts on how to do this in v7?

Also we could specify a where clause in the sub panel layout for a specific module, something like:

$subpanel_layout['where'] = "cases.status =  'Closed' and cases_cstm.case_closed_reason_c != 'Spam'";

Thus creating, for example, separate sub panels for Open and Closed cases, how is that handled in v7?

And finally, we would use the custom/Extension/modules/<module>/Ext/Layoutdefs/<your_file_name>.php to override top buttons, like removing the ability to use the TopSelectButton by redefining 

$layout_defs['<module>']['subpanel_setup']['<subpanel>']['top_buttons']= array(<button defs here>);
How do we hide select default actions from the sub panels in v7?

Documentation is scant and I feel I'm drowning in a sea of grep results in the hope of seeing something enlightening to reverse-engineer Sugar7... Not the best feeling...

Thanks,
FrancescaS

Outcomes