Results 1 to 5 of 5

Thread: Same fields in different tabs

  1. #1
    sgilleland is offline Senior Member
    Join Date
    Jun 2009
    Posts
    45

    Default Same fields in different tabs

    I would like to create different modules that have the same fields from other custom modules...how do I do that?

    For example, I want to have a summary tab which will have information from various custom modules.....how do I get the same fields from one module to another one?

  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: Same fields in different tabs

    Hi sgilleland

    How would you like to work with this set of modules?
    How would you like to create a record from Summary module and from related modules?
    Would you like to automatically pass field values from related modules from Summary module?
    Clarify that and we will be able to guide you.

    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
    sgilleland is offline Senior Member
    Join Date
    Jun 2009
    Posts
    45

    Default Re: Same fields in different tabs

    My goal is to have a summary tab that will have the fields from other modules passed to it automatically......

    I have a marketing company that will be posting information into Sugar via WebtoLeads and I will have our agents update various fields in various modules and would like to take the info that the agents put in and move it to a summary tab that I can give the marketing company access to. This will make it simple for them to see the status, and any other fields that I would like them to see.

    There would really be know need for them to create a record.....just view.

    Thanks,
    Skip

  4. #4
    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: Same fields in different tabs

    Hi Skip

    So you need to create relationships between the Summary module and the related modules (1 to 1) to let sugar deal with the fields.
    You have to create on Summary vardefs all fields coming from related modules, but these fields at Summary module needs to have the attribute:
    PHP Code:
    'source' => 'non-db'
    This will tells Sugar to don't create the fields into summary table once they come from related modules.
    Create a controller.php for Summary module and implement the methods action_detailview and action_editview. The content of these two methods should be almost the same:
    You need to retrieve objects from related modules based on relationship fields and fill in pseudo Summary fields values from real fields from related modules.
    Then you can go to Admin -> Studio -> Summary -> Layout -> and add into DetailView and EditView the fields you want.

    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.

  5. #5
    sgilleland is offline Senior Member
    Join Date
    Jun 2009
    Posts
    45

    Default Re: Same fields in different tabs

    Thank you very much for the response.....however, I didn't understand it all. Is this something a that is easy for a newbee, and I am just not understanding? Could you possibly elabeorate a little more?

    Thanks,

    Skip

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Matching fields and layouts for all tabs
    By globalads in forum Help
    Replies: 0
    Last Post: 2009-04-30, 07:18 AM
  2. Share data fields between Tabs
    By clendeninghl in forum General Discussion
    Replies: 0
    Last Post: 2008-02-24, 12:59 AM
  3. How to see created custom fields in tabs ?
    By abaydar in forum General Discussion
    Replies: 0
    Last Post: 2007-03-07, 11:31 AM
  4. Shared Custom Fields between Tabs
    By pkoistin in forum Help
    Replies: 4
    Last Post: 2006-06-26, 10:56 AM
  5. Replies: 0
    Last Post: 2006-01-11, 11:27 AM

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
  •