Subpanel in Edit View in Sugar CRM
By Amer Wilson
Subpanels in Sugar CRM provide additional information to user regarding the current record. This additional information is of immense importance as user can see relating records on the same page. Lately, we had to make a customization that included showing subpanels on Contact’s Edit View. For this we enabled the option of showing subpanels in view.edit.php.
$this->options [‘show_subpanels’] = true;
After enabling subpanels in contacts’ edit view, when a record was created or selected using subpanels create or select button, nothing happened. So, the easy part ended and the tricky part of making the subpanel buttons work was left.
For subpanels’ button functioning we had to override SubPanelTiles display() function and in it call the custom SubPanelTiles.js. In custom SubPanelTiles.js we identified all occurrences where form elements were accessed from Detail View and replaced them with Edit View. After repair and rebuild subpanels in edit view were working fine.