Results 1 to 3 of 3

Thread: Account phone number show in detail view

  1. #1
    lucaspr is offline Junior Member
    Join Date
    Mar 2010
    Posts
    3

    Default Account phone number show in detail view

    Is it possible to show the phone number of the selected account in detail view? And in the printed case too?

  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: Account phone number show in detail view

    You need to do the following:
    • Create an extended vardefs on Cases to add the field 'phone_office', remember to setup this field as a 'non-db' one;
    • Create an extended language on Cases to add the label for this new field;
    • Create a custom controller for Cases and implement the functions action_detailview and action_editview in order to properly populate this fields based on value from Account field;
    • Into editviewdefs of Cases add the following attribute on account_name field definition:


    PHP Code:
                'displayParams' => 
                array (
                  
    'field_to_name_array' => array(
                    
    'id' => 'account_id',
                    
    'name' => 'account_name',
                    
    'phone_office' => 'phone_office',
                  ),
                  
    'additionalFields' => array(
                    
    'phone_office' => 'phone_office',
                  ),
                ), 
    Then go to Admin -> Repair -> Rebuild Extensions
    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
    lucaspr is offline Junior Member
    Join Date
    Mar 2010
    Posts
    3

    Default Re: Account phone number show in detail view

    Thanks! Will try to figure it out! I'm not into programming at all so it's going to be though. I lost you at extended vardefs.. That's how good my programming is. But I'll search. If I really can't find it I'll post a message here!

    I looked at it. But I think this is going to be a bit to hard for me to do. As said I'm a total newbie to sugar and I have poor programming/developer skills. But I thank you for you answer. The very short answer is yes it can be done! But not for me I guess, or if you would be so kind to guide me through this.... then maybe. I do not use a language pack. For what its worth...
    Last edited by lucaspr; 2010-03-12 at 03:00 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Account address to show up in Cases Detail View
    By mylo78 in forum Developer Help
    Replies: 5
    Last Post: 2012-03-12, 12:32 PM
  2. View Phone Number in case View
    By aleroot in forum Developer Help
    Replies: 3
    Last Post: 2009-01-09, 11:49 PM
  3. Add Phone Number to Call Detail
    By Lestonian in forum Help
    Replies: 2
    Last Post: 2008-09-22, 01:14 PM
  4. Phone Number doesnt show
    By DanBrown in forum Help
    Replies: 1
    Last Post: 2008-08-08, 03:13 PM
  5. Replies: 0
    Last Post: 2008-05-17, 10:01 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
  •