Results 1 to 3 of 3

Thread: Custom field value in two modules

  1. #1
    patben65 is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    15

    Default Custom field value in two modules

    HI,
    Using Sugar community 5.0.0f and having a minor problem...

    In Accounts we have a custom field called "agent /partner" - this field tells us which agent (account) is responsible for this actual acoount.

    When a opportunity is created on a account I would like to have a filed in the opportunity view which have the same value as the "agent/partner" view in accounts.

    Can this be done? How? I would prefer to have an upgrade safe solution.
    Can the "agent/partner" in opportunities be used in serach and also be sorted on?

    /Patrik

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Custom field value in two modules

    The only way to do this is with a logic_hook. You would write a before_save logic_hook that would copy the info needed from the associated account to the opportunity. Logic_hooks are detailed in the developers manual at http://developers.sugarcrm.com
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    patben65 is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    15

    Default Re: Custom field value in two modules

    OK - thanks for the help. I think it will be to advanced for us...
    Will try another custom field in opportunity module.

    /Patrik

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Add a custom field across modules?
    By mhreczuck in forum Help
    Replies: 1
    Last Post: 2009-08-11, 01:23 AM
  2. Replies: 4
    Last Post: 2009-07-16, 03:55 AM
  3. Customising a releate field to link two custom modules
    By Nisbet in forum Developer Help
    Replies: 3
    Last Post: 2008-04-21, 01:09 PM
  4. Replies: 0
    Last Post: 2007-06-14, 09: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
  •