Results 1 to 4 of 4

Thread: how to add date created field in the history subpanel

  1. #1
    john.luat is offline Senior Member
    Join Date
    Sep 2008
    Posts
    30

    Default how to add date created field in the history subpanel

    Hello,

    I would like to ask how can i add a "date created" in the list view of the history subpanel? thanks in advance.

    ---------------------------
    Windows Server 2003
    SugarCRM 5.2.0g
    IIS 6.0
    PHP 5.2.9-2
    MySQL 5.0.51a

  2. #2
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Re: how to add date created field in the history subpanel

    Hi John,

    See http://www.sugarcrm.com/forums/showthread.php?t=55691

    This has instructions for adding a separate datetime field to notes and creating a custom History subpanel that shows meaningful dates in the list view for all modules rather than date_modified.

    Creating a custom Notes datetime field allows you can set the actual date and time of a particular action even when it did not occur when the note was created or modified.

    If you really want to display date_created instead, you can skip those steps. There are also several other good threads referenced there that describe simply replacing date_modified with date_created.

    Phil

  3. #3
    john.luat is offline Senior Member
    Join Date
    Sep 2008
    Posts
    30

    Default Re: how to add date created field in the history subpanel

    hello phil,

    isn't there any way i can achieve this customization without doing much coding? i would like to retain the date modified field and add the date created field.

  4. #4
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Re: how to add date created field in the history subpanel

    Quote Originally Posted by john.luat View Post
    hello phil,

    isn't there any way i can achieve this customization without doing much coding? i would like to retain the date modified field and add the date created field.
    Depends how you define "much coding" but there are several issues that cause coding to be required:

    You can't change subpanel definitions through Studio, so to be upgrade-safe, you'll need to create an extension, which requires coding.

    Worse yet, you're dealing with the History module, which aggregates several modules. So right off the bat you have to make changes to handle all those modules.



    To simply add the date_created in addition to date_modified, you still need to add that column to the columns array in your new history subpanel definition in code. But that's a lot simpler than changing the columns if you're willing to tackle the code.

    Phil

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. History Subpanel- Sort by Date Sent/Received
    By peteunderwood in forum General Discussion
    Replies: 15
    Last Post: 2010-01-20, 07:12 AM
  2. Replies: 2
    Last Post: 2009-08-07, 11:59 AM
  3. Created Field Date format
    By BobTerwilliger in forum Help
    Replies: 2
    Last Post: 2009-05-21, 04:06 PM
  4. Making History Subpanel in own created module
    By MJBVrijmoed in forum Help
    Replies: 2
    Last Post: 2008-01-08, 07:25 PM
  5. Replies: 2
    Last Post: 2005-05-18, 11:59 AM

Tags for this Thread

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
  •