Results 1 to 7 of 7

Thread: Opportunities History Subpanel

  1. #1
    vmartinezfoima is offline Junior Member
    Join Date
    Jul 2009
    Posts
    2

    Default Opportunities History Subpanel

    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.

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Opportunities History Subpanel

    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:

    PHP 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';
    ?>
    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.

    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.

  3. #3
    vmartinezfoima is offline Junior Member
    Join Date
    Jul 2009
    Posts
    2

    Default Re: Opportunities History Subpanel

    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?

  4. #4
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Opportunities History Subpanel

    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.

  5. #5
    jcandan is offline Junior Member
    Join Date
    Oct 2010
    Posts
    3

    Default Re: Opportunities History Subpanel

    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?
    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'
    How can I do the same for the Accounts Module?

    Thanks

  6. #6
    jcandan is offline Junior Member
    Join Date
    Oct 2010
    Posts
    3

    Default Re: Opportunities History Subpanel

    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:
    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'
    I then created the 5 blank php files listed below:

    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.
    Notice:
    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
    Go to Admin -> Repair -> Rebuild Extensions.
    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.

    Thanks so much for your help, i look forward to any replies related to this issue.

  7. #7
    Andrii Taran is offline Junior Member
    Join Date
    Mar 2011
    Location
    Odessa
    Posts
    8

    Default Re: Opportunities History Subpanel

    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.
    It looks like that the name of files should be not OpportunityForHistory.php In your case it should be - AccountForHistory.php

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 2009-12-18, 05:52 PM
  2. History Subpanel
    By zunaidfloris in forum Help
    Replies: 1
    Last Post: 2009-07-08, 09:23 AM
  3. history subpanel
    By gdurham in forum Help
    Replies: 2
    Last Post: 2009-06-02, 11:32 PM
  4. PATCH: Order history and opportunities subpanes
    By rbemrose in forum Downloads
    Replies: 0
    Last Post: 2005-10-24, 10:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •