Hi there, I am new to sugarcrm and encountered 2 problems.
1.
How can i customize the history panel to show a custom field, ie. Under Opportunity?
Ok. I added a custom field into Notes, Email, Task, Call and Meetings. and modified the 5 ForHistory.php to show the field. The Column name is shown on the History subpanel under Opportunity, but no data is not shown.
When i look up the layoutdefs.php for Opportunity, I noticed the History called the 5 modules in a Collection. So I did a test, I commented out the collection array and put one of the module (Notes) into the history and comment out the type = Collection:
'order' => 20,
'module' => 'Notes',
'subpanel_name' => 'ForHistory',
// 'type' => 'collection',
'get_subpanel_data' => 'notes',
'title_key' => 'LBL_HISTORY_SUBPANEL_TITLE',
'top_buttons' => array(
array('widget_class' => 'SubPanelTopCreateNoteButton'),
array('widget_class' => 'SubPanelTopArchiveEmailButton'),
array('widget_class' => 'SubPanelTopSummaryButton'),
),
In this case, the data is shown up for the notes. But I don't want 5 different History subpanels. Can anyone help me? I am out of ideas.
2.
The custom field i added for Notes, how can i hide the custom field when creating note for other modules, and only show up for Opportunities Module?
BTW, i am on sugarcrm 5.1.0b.
Thanks in advance.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks