I would like to edit the Opportunities History Subpanel (I want to change "Date Modified" for "Due Date"). How can I do it?
In the "Studio" developer tool I was not able to find the Opportunities History Subpanel.
Thank you.
I would like to edit the Opportunities History Subpanel (I want to change "Date Modified" for "Due Date"). How can I do it?
In the "Studio" developer tool I was not able to find the Opportunities History Subpanel.
Thank you.
Create an extended layoutdefs for Opportunities (custom/Extension/modules/Opportunities/Ext/Layoutdefs/layoutdefs.ext.php);
Create the folders and file if they don´t exist;
Add into layoutdefs.ext.php a code like that:
Create the filesPHP Code:<?php
$layout_defs['Opportunities']['subpanel_setup']['history']['collection_list']['meetings']['subpanel_name'] = 'OpportunityForHistory';
$layout_defs['Opportunities']['subpanel_setup']['history']['collection_list']['tasks']['subpanel_name'] = 'OpportunityForHistory';
$layout_defs['Opportunities']['subpanel_setup']['history']['collection_list']['calls']['subpanel_name'] = 'OpportunityForHistory';
$layout_defs['Opportunities']['subpanel_setup']['history']['collection_list']['notes']['subpanel_name'] = 'OpportunityForHistory';
$layout_defs['Opportunities']['subpanel_setup']['history']['collection_list']['emails']['subpanel_name'] = 'OpportunityForHistory';
?>
modules/Meetings/metadata/subpnales/OpportunityForHistory.php
modules/Tasks/metadata/subpnales/OpportunityForHistory.php
modules/Calls/metadata/subpnales/OpportunityForHistory.php
modules/Notes/metadata/subpnales/OpportunityForHistory.php
modules/Emails/metadata/subpnales/OpportunityForHistory.php
containing the desired change.
Go to Admin -> Repair -> Rebuild Extensions.
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Thank you for your quick reply. The problem is that I work with Sugar on demand, I don't have this software installed in my computer. Can I do thi as Administrator user?
Even though it's on-demand, you still have access to the source code. Speak to your hosting provider about the tools available to do this.
Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11 MySQL 5.0.32
SalesAgility.com - SugarCRM Experts (UK)
Authors of Advanced OpenSales - Open Source Quotations, Invoices, Products and Contracts modules for SugarCRM Community Edition - Download here
I've just recently switched to SugarCRM Pro On-Site. I'm an intermediate PHP dev. I have a couple clarification questions, if you don't mind.
vmartinezfoima wanted to exchange "Date Modified" for "Due Date", How is it that the code here would do that?
How can I do the same for the Accounts Module?PHP Code:$layout_defs['Opportunities']['subpanel_setup']['history']['collection_list']['meetings']['subpanel_name'] = 'OpportunityForHistory';
$layout_defs['Opportunities']['subpanel_setup']['history']['collection_list']['tasks']['subpanel_name'] = 'OpportunityForHistory';
$layout_defs['Opportunities']['subpanel_setup']['history']['collection_list']['calls']['subpanel_name'] = 'OpportunityForHistory';
$layout_defs['Opportunities']['subpanel_setup']['history']['collection_list']['notes']['subpanel_name'] = 'OpportunityForHistory';
$layout_defs['Opportunities']['subpanel_setup']['history']['collection_list']['emails']['subpanel_name'] = 'OpportunityForHistory';
Thanks
ok, so, i followed your instructions above, modifying it a little to work within Accounts. However, i still do not see History listed under Accounts -> Subpanels in the Studio. Please review the steps below and verify i've done it correctly, or let me know what i did wrong and how to correct it.
In the existing file, custom/modules/Accounts/Ext/Layoutdefs/layoutdefs.ext.php, i inserted the following code:
I then created the 5 blank php files listed below:PHP Code:$layout_defs['Accounts']['subpanel_setup']['history']['collection_list']['meetings']['subpanel_name'] = 'AccountForHistory';
$layout_defs['Accounts']['subpanel_setup']['history']['collection_list']['tasks']['subpanel_name'] = 'AccountForHistory';
$layout_defs['Accounts']['subpanel_setup']['history']['collection_list']['calls']['subpanel_name'] = 'AccountForHistory';
$layout_defs['Accounts']['subpanel_setup']['history']['collection_list']['notes']['subpanel_name'] = 'AccountForHistory';
$layout_defs['Accounts']['subpanel_setup']['history']['collection_list']['emails']['subpanel_name'] = 'AccountForHistory';
Notice:Create the files
modules/Meetings/metadata/subpnales/OpportunityForHistory.php
modules/Tasks/metadata/subpnales/OpportunityForHistory.php
modules/Calls/metadata/subpnales/OpportunityForHistory.php
modules/Notes/metadata/subpnales/OpportunityForHistory.php
modules/Emails/metadata/subpnales/OpportunityForHistory.php
containing the desired change.
I did not understand what you meant by "containing the desired change."
i then went into Admin -> Repair -> Quick Repair and Rebuild, as this was the only option that listed Extensions in it's description.
Notice:
I did not see the actual option to Rebuild Extensions within the Admin -> Repair
After this, i went into the Studio and did not see History listed under Accounts -> Subpanels. I also noticed that the layoutdefs.ext.php file erased my changes as it is an auto-generated file.Go to Admin -> Repair -> Rebuild Extensions.
Thanks so much for your help, i look forward to any replies related to this issue.
It looks like that the name of files should be not OpportunityForHistory.php In your case it should be - AccountForHistory.phpCreate the files
modules/Meetings/metadata/subpnales/OpportunityForHistory.php
modules/Tasks/metadata/subpnales/OpportunityForHistory.php
modules/Calls/metadata/subpnales/OpportunityForHistory.php
modules/Notes/metadata/subpnales/OpportunityForHistory.php
modules/Emails/metadata/subpnales/OpportunityForHistory.php
containing the desired change.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks