Results 1 to 5 of 5

Thread: Adding Account Fields to Cases

  1. #1
    dcornford is offline Sugar Community Member
    Join Date
    Jan 2012
    Posts
    14

    Default Adding Account Fields to Cases

    Hi everyone

    I am sure there is a simple way of doing this, but I can't find it!

    I am reviewing case management processes right now and want to add the 'Rating' field that is present in an Account record to the Case List section. In this way I can swiftly see cases created for important accounts and prioritise them accordingly.

    Any ideas?

    Thanks
    David

  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: Adding Account Fields to Cases

    Steps to follow:
    • Create an extended vardefs and language for Cases and define vardef and language entry for the rating field, just like it exists in Accounts;
    • Add that field, by hand, into Cases listviewdefs.php;
    • Quick Repair and Rebuild
    • Create a new class which extend the default Case one;
    • Inside this class implement the method create_new_list_query, initially implemented in SugarBean;
    • Create a custom controller for Cases and implement the method action_listview;
    • Inside this method override the value of $this->bean by an instance of such new class;
    • Modify the method create_new_list_query in order to make the query working properly.


    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
    dcornford is offline Sugar Community Member
    Join Date
    Jan 2012
    Posts
    14

    Default Re: Adding Account Fields to Cases

    Thanks for the answer - so it certainly sounds like I can do what I need - but I am not a programer and this sounds a little scary!

    Any simpler ways or can you let me know how to do this?

    Thanks
    David

  4. #4
    class.raja is offline Junior Member
    Join Date
    Dec 2011
    Posts
    1

    Default Re: Adding Account Fields to Cases

    Quote Originally Posted by dcornford View Post
    Thanks for the answer - so it certainly sounds like I can do what I need - but I am not a programer and this sounds a little scary!

    Any simpler ways or can you let me know how to do this?

    Thanks
    David
    I am also interested an answer on this. Is there a simple way to do it? Is it achievable through studio?

  5. #5
    adam.frank is offline Senior Member
    Join Date
    Aug 2008
    Location
    Sydney, Australia
    Posts
    136

    Default Re: Adding Account Fields to Cases

    It is possible to achieve via Studio in the commercial editions by using SugarLogic.

    Otherwise, you need to follow the steps that andopes has described above. The developer guide (Sugar Developer - SugarCRM Support Site) has more information on how to do many of these steps.
    Adam Frank
    Consultant, Loaded Technologies
    adam.frank@loadedtech.com.au

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-09-04, 08:51 AM
  2. Replies: 4
    Last Post: 2008-07-12, 02:23 AM
  3. Changing the questions (fields) when adding new account?
    By jasonadmin in forum Customer Support
    Replies: 1
    Last Post: 2007-08-30, 10:41 AM
  4. Replies: 3
    Last Post: 2006-04-05, 12:12 PM
  5. Replies: 1
    Last Post: 2006-02-16, 02:05 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
  •