Results 1 to 6 of 6

Thread: Display of Subpanels in Contacts

  1. #1
    jwallis is offline Member
    Join Date
    Jun 2007
    Posts
    5

    Default Display of Subpanels in Contacts

    I'm trying to change what fields are displayed in the History area in Contacts...
    Any suggestions?

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Display of Subpanels in Contacts

    I think you have to edit the modules/MODULE_NAME/subpanels/forHistory.php file directly.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    JeanetteRoss is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    61

    Default Re: Display of Subpanels in Contacts

    I tried adding a field the
    modules\task\subpanels\forhistory.php

    and it went bang - there must be another way.


    Any pointers
    Ta

  4. #4
    ivolator's Avatar
    ivolator is offline Sugar Community Member
    Join Date
    Sep 2006
    Location
    Dagobah
    Posts
    98

    Default Re: Display of Subpanels in Contacts

    Hi there,
    Here is the answer.
    Open the layout_defs for Contacts.
    Look at the subpanel_setup=>history=>collection_list array .
    From that list, your subpanel is being drawn.
    The first one in the list is the one being displayed. If you modify lets's say the first one which is meetings=>array( .... subpanel_name=>'ForHystory');
    Then your changes will be seen in Contact's history subpanel.
    Now go to the modules/Meetings/subpanels/ForHistory.php and have fun with it

    Hope this helps,

    -ivo

  5. #5
    JeanetteRoss is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    61

    Default Re: Display of Subpanels in Contacts

    Hi
    Thanks for the help but I am still a bit confused:

    I want to add the start time to the history tab in the Accounts, task history

    I had worked out that I needed to change the file:
    modules\Tasks\subpanels\ForHistory.php

    I inserted the following line at line 59

    'date_start'=>array(
    'vname' => 'LBL_LIST_DATE_START',
    'width' => '10%',
    ),


    but it gave me an error.
    Is there something else i need to change. What is the significance of looking at the layout_defs.php - it just tells me the name of the history file or am have I misunderstood.

  6. #6
    ivolator's Avatar
    ivolator is offline Sugar Community Member
    Join Date
    Sep 2006
    Location
    Dagobah
    Posts
    98

    Default Re: Display of Subpanels in Contacts

    for each one of the modules meetings,tasks,calls,notes,emails you will have to add to their ForHistory.php
    date_start => array() values.
    For the formentioned modules that there is no such field (date_start) in the DB you must provide an entry too.
    For example the Calls module does not have date_start field, but you'll enter in the subpanels/ForHistory.php this
    PHP Code:
    'list_fields' =>array(
    ... ... ...
    here are the old fields
    ... ... 
    'date_start'=>array(
    'width' => '10%',
            
    'vname' => 'LBL_LIST_DATE_MODIFIED',
        
    'force_exists'=>true,
    )

    For the modules that have an entry you got it correct.
    PHP Code:
    'date_start'=>array(
    'vname' => 'LBL_LIST_DATE_START',
              
    'width' => '10%',
    ), 
    In short this field must be defined in the mentioned modules' ForHistory.php because they were defined in the collection_list for layout_defs for Accounts .Otherwise the UNION they are used in will break if different number of fields is provided .

    Regards
    Last edited by ivolator; 2007-06-26 at 03:30 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Accounts, Contacts and B2C implementations
    By organi in forum General Discussion
    Replies: 46
    Last Post: 2010-05-23, 07:04 PM
  2. 2 Contacts subpanels in Accounts
    By visor in forum Developer Help
    Replies: 0
    Last Post: 2006-08-20, 12:25 PM
  3. tabs/buttons to display subpanels.
    By sugarcare in forum Help
    Replies: 6
    Last Post: 2006-07-28, 11:52 AM
  4. Replies: 0
    Last Post: 2006-01-29, 12:34 AM
  5. Display more than 20 contacts / poage
    By fredmonac in forum Help
    Replies: 1
    Last Post: 2005-02-22, 04:07 PM

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
  •