Results 1 to 3 of 3

Thread: Add project name on the subpanel activities for a contact

  1. #1
    jejeman is offline Sugar Community Member
    Join Date
    Jan 2012
    Posts
    49

    Default Add project name on the subpanel activities for a contact

    Hello,

    On the contact view, I can see the subpanel Activities with all Tasks for the contact.
    for a task I can see "task status, type, contact name, due date..."
    I would like to add the project name field on the subpanel.
    I copied the file modules/Tasks/metadata/subpanels/Foractivities.php to the folder custom/modules/Tasks/metadata/subpanels/Foractivities.php
    I added the section :
    Code:
    		'project_name' => array (
    			'name' => 'project_name',
    			'vname' => 'LBL_LIST_PROJECT_TO_NAME',
    			'widget_class' => 'SubPanelDetailViewLink',
    		 	'target_record_key' => 'project_id',
    			'target_module' => 'Project',
                            'module' => 'Project',
    			'width' => '22%',			
    		),
    In the list fields.
    Now I can see the label "LBL_LIST_PROJECT_TO_NAME" but there is nothing in the field.
    I think there is a problem with my code...
    Can you help me ?
    Thank you.

  2. #2
    jejeman is offline Sugar Community Member
    Join Date
    Jan 2012
    Posts
    49

    Default Re: Add project name on the subpanel activities for a contact

    Any solutions ?

  3. #3
    kir
    kir is offline Sugar Community Member
    Join Date
    Nov 2011
    Posts
    702

    Default Re: Add project name on the subpanel activities for a contact

    Quote Originally Posted by jejeman View Post
    Any solutions ?
    hi

    read info here for more information about collections type subpanel:
    Adding custom fields to the Activities or History subpanels SugarCRM Developer Blog

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2010-07-28, 01:28 PM
  2. Remove the contact column in Activities subpanel
    By sankar in forum Developer Help
    Replies: 3
    Last Post: 2010-07-27, 05:07 PM
  3. Replies: 1
    Last Post: 2010-02-26, 03:43 PM
  4. Replies: 0
    Last Post: 2005-10-15, 07:01 PM
  5. Replies: 0
    Last Post: 2004-11-10, 09:42 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
  •