Results 1 to 5 of 5

Thread: Customize Activities ListView SubPanel

  1. #1
    mswaim1 is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    NC
    Posts
    10

    Default Customize Activities ListView SubPanel

    I'm trying to get a cstm notes field to appear in the subpanel for notes on accounts and contacts detail views. I've tried editing modules/activities/subpanelview.html and modules/notes/subpanelview.html and simply changing header column labels to see if im in the right place. I dont see any results even after clearing the vardefs and template data caches. Can someone verify that this is where i need to start or should i create the \sugar\custom\modules\Notes\Ext\Layoutdefs dir (see http://www.sugarcrm.com/forums/showthread.php?t=32787) and work from here?


    sugar 5.0.a

  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: Customize Activities ListView SubPanel

    Hi, mswaim1

    You have to add this new custom field into custom/modules/Notes/metadata/subpanels/ForHistory.php
    And you need to add this new field into all activities modules FotHistory.php with the option "force_exist"
    Without that your sugar will die due sql error.

    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
    enrashid is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    59

    Default Re: Customize Activities ListView SubPanel

    Quote Originally Posted by andopes
    Hi, mswaim1

    You have to add this new custom field into custom/modules/Notes/metadata/subpanels/ForHistory.php
    And you need to add this new field into all activities modules FotHistory.php with the option "force_exist"
    Without that your sugar will die due sql error.

    Cheers
    The above instructions allow me to successfully add a custom field ONLY to Notes and for the other modules, I put in the force_exists. Great.

    The result so far is that I see the custom field for the Notes module, but when you look at the History subpanel for Accounts, you do not see this custom field. I know there is probably one more file to edit. Any guidance is appreciated.

    Cheers - El-Noor

  4. #4
    enrashid is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    59

    Default Re: Customize Activities ListView SubPanel

    Hi everyone,

    I've gotten the extra field to appear in the Subpanel, however no entries show up in the subpanel anymore (even though in the top-right corner of the subpanel it says "1-4 of 4 of 4").

    When I remove the added field, all of my Activities show up, and if I set my custom field to 'usage'=>'query_only', it disappears from the list, but I don't see any activities.

    So, adding the code causes them not to display, and the question I'm asking is if anyone knows why this could happen.

    Here is the code I am using in Meetings and Calls:

    'testaddedtask_c'=>array(
    'vname'=>'LBL_TESTADDEDTASK',
    'force_exists'=>true,
    ),

    And here is the code I'm using in Tasks (where I've actually created the field)

    'testaddedtask_c'=>array(
    'vname'=>'LBL_TESTADDEDTASK',
    ),

    (Sugar Enterprise 5.0d)

    Thanks in advance for the help.

    Mike

  5. #5
    enrashid is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    59

    Default Re: Customize Activities ListView SubPanel

    It turns out that 'force_exists'=>true actually causes the UNION ALL query to return a mis-matched number of columns.

    'testaddedtask_c'=>array(
    'vname'=>'LBL_TESTADDEDTASK',
    ),

    Turns out that is the entry you need in all of the 'Activities' modules (and I only created the field in tasks).

    Hope this saves somebody a lot of head banging.....

    Mike

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom field in (Activities) Calls subpanel listview
    By ChocolateLover in forum Developer Help
    Replies: 2
    Last Post: 2010-04-21, 10:42 AM
  2. How to Add Activities Subpanel to Targets?
    By jjwdesign in forum Developer Help
    Replies: 2
    Last Post: 2008-04-06, 05:49 PM
  3. Adding 'Activities' subpanel
    By jhaehsonne in forum Developer Help
    Replies: 2
    Last Post: 2007-09-11, 02:23 AM
  4. Problem with Activities Subpanel
    By Ketzu in forum General Discussion
    Replies: 0
    Last Post: 2006-01-04, 10:23 PM
  5. Replies: 1
    Last Post: 2005-10-07, 03:38 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
  •