Results 1 to 3 of 3

Thread: Logic Hook - None Programmer

  1. #1
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Exclamation Logic Hook - None Programmer

    Hi there.

    I am a none programmer, and reading through the forums got more and more confused!! So please help me with a logic hook.

    The module is projects.


    i have created the following custom fields

    , project_cstm.project_sathours_c
    , project_cstm.project_fridayhours_c
    , project_cstm.project_thursdayhours_c
    , project_cstm.projects_wednesdayhours_c
    , project_cstm.project_tuesdayhours_c
    , project_cstm.project_modayhours_c
    , project_cstm.project_tot_week_c
    , project_cstm.project_monday_hours_c

    i need a calculation to happen when pressing save.

    project_cstm.project_sathours_c +
    project_cstm.project_fridayhours_c +
    project_cstm.project_thursdayhours_c +
    project_cstm.projects_wednesdayhours_c +
    project_cstm.project_tuesdayhours_c +
    project_cstm.project_modayhours_c +
    project_cstm.project_monday_hours_c = project_cstm.project_tot_week_c

    Thank you

    Paul

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Logic Hook - None Programmer

    Look to the attached zip-file.

    If you put them to \custom\modules\Project the hook function should be called on every save.
    Attached Files Attached Files
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  3. #3
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default Re: Logic Hook - None Programmer

    Thank you, thank you thank you.

    I eventually ended up doing what i know and created sql triggers fir this, but a logic hook will work better

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 10
    Last Post: 2010-11-16, 02:41 AM
  2. what is Logic Hook?
    By ramji123 in forum General Discussion
    Replies: 2
    Last Post: 2009-12-22, 08:05 AM
  3. Replies: 3
    Last Post: 2009-08-15, 03:00 AM
  4. logic Hook up
    By sugar7478 in forum Developer Help
    Replies: 8
    Last Post: 2008-07-11, 02:40 AM
  5. Logic Hook
    By sacramentojoe in forum Help
    Replies: 15
    Last Post: 2007-07-31, 11:30 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
  •