Results 1 to 3 of 3

Thread: Need one module's field to be shown on another modules detail view

  1. #1
    JHealey is offline Sugar Community Member
    Join Date
    Feb 2006
    Posts
    12

    Default Need one module's field to be shown on another modules detail view

    Need one module's field to be shown on another modules detail view where it is linked with the account

    For example:

    My Accounts have a custom field for the Hardware we sent them..... In my CASES view I want that to be shown and possibly edited through the cases module... They are already linked by the Account field....

    Can anyone offer suggestions?

  2. #2
    technatica is offline Junior Member
    Join Date
    Nov 2008
    Posts
    2

    Default Re: Need one module's field to be shown on another modules detail view

    I happen to need the same hint/tip info.

  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: Need one module's field to be shown on another modules detail view

    Hi all

    You need to do the following:

    1. Create an extended vardefs for Cases (custom/Extension/modules/Cases/Ext/Vardefs/vardefs.ext.php)
    This field defs need to be equal to field into Accounts, but non a custom field and with the attribute 'source' => 'non-db';
    2. Go to Admin -> Repair -> Rebuild Extension;
    3. Using Studio add this new field to DetailView/EditView layout, it need to be available;
    4. Create a custom controller for Cases (custom/modules/Cases/controller.php)
    This controller need to define the functions action_editview and action_detailview. Inside this functions you need to retrieve the Account record related to the Case and fill in the new field into Cases the value from the Account record;
    5. Define a function action_save into Cases custom controller
    This function needs to retrieve the related Account, fill in the custom field the value came from request and save it.

    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 12
    Last Post: 2010-10-29, 11:04 AM
  2. Replies: 0
    Last Post: 2006-07-11, 10:05 PM
  3. Replies: 0
    Last Post: 2005-11-23, 01:02 PM
  4. How to add an existing field to a list view in field layout?
    By Lawrence in forum General Discussion
    Replies: 1
    Last Post: 2005-04-22, 01:38 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
  •