Results 1 to 6 of 6

Thread: Adding a field from another module to a layout

  1. #1
    romanowichm is offline Junior Member
    Join Date
    Oct 2009
    Posts
    3

    Default Adding a field from another module to a layout

    I am trying to add the billing_address_city and billing_address_state from the Accounts module to the Cases List layout view. Can some explain how to do this?

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Adding a field from another module to a layout

    You can't do this without some code customisation.

  3. #3
    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 a field from another module to a layout

    You need to:
    1. Create these fields on extended vardefs for Cases module. These fields need to have the attribute 'source' => 'non-db';
    2. Create a logic_hook process_record to fill in these fields the appropriate values;
    3. Use the Studio to add these fields on ListView.


    Regards
    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.

  4. #4
    romanowichm is offline Junior Member
    Join Date
    Oct 2009
    Posts
    3

    Default Re: Adding a field from another module to a layout

    Are there any good tutorials on how to accomplish this?

  5. #5
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

  6. #6
    SteveDowe is offline Junior Member
    Join Date
    Jan 2011
    Posts
    3

    Smile Re: Adding a field from another module to a layout

    I came across this thread from my Google search.

    I'm not sure which version of SugarCRM the question relates to, but in 5.5 I managed to achieve this as follows:

    • Go to Admin
    • Click Studio
    • Select the module you want to add the field to
    • Within Studio, click on Fields
    • Add Field
    • In Add Field form, select Drop Down
    • In the Drop Down List option, select the relevant module's drop down list
    • Add any other values as you see fit then click Save
    • In Studio > Layouts, add the field to your edit, detail and listview layouts as required.


    Hope that helps!

    Steve
    Managed Web Hosting and Web Development

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. adding new fields in layout-studio panel for the leads' module
    By blastmultimedia in forum Developer Help
    Replies: 0
    Last Post: 2009-04-29, 01:26 AM
  2. Replies: 2
    Last Post: 2009-04-22, 07:40 AM
  3. Replies: 1
    Last Post: 2007-08-27, 07:58 AM
  4. Replies: 2
    Last Post: 2005-11-11, 09:44 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
  •