Results 1 to 3 of 3

Thread: Adding Field

  1. #1
    SVydelingum is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    24

    Default Sum Fields in the Account Module - Company record

    HI,

    I have a field of type text in the Account module that I would liek to use to add up currency within the same account id.

    I have 5 currency fields in the record and would like to sum these fields up and update the text field accordingly.

    Please advice on best approach or if you have any code for this, greatly appreciated.

    Thanks
    Savyn
    Last edited by SVydelingum; 2008-07-12 at 06:31 PM. Reason: Wrong title

  2. #2
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Adding Field

    You will want to build a custom code that uses the before_save logic hook to sum these fields. See this Wiki page for details how to build this.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  3. #3
    SVydelingum is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    24

    Default Re: Adding Field

    Quote Originally Posted by clint
    You will want to build a custom code that uses the before_save logic hook to sum these fields. See this Wiki page for details how to build this.
    Hi Clint,

    Thank you for this information but I have no clue how to proceed as I am not a programmer and completely lost here.

    I will pass this information to colleagues but hope someone outhere have the codes or pointers.

    thks
    Savyn

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Adding Autonumber Field
    By phillipdean in forum Developer Help
    Replies: 2
    Last Post: 2008-12-07, 03:11 AM
  2. Replies: 14
    Last Post: 2006-11-14, 06:56 AM
  3. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  4. Replies: 3
    Last Post: 2005-10-21, 05:28 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
  •