Results 1 to 3 of 3

Thread: [HELP] Error Handler for Save Accounts Function

  1. #1
    fedepia is offline Sugar Community Member
    Join Date
    Aug 2007
    Location
    Rosario, Argentina
    Posts
    104

    Exclamation [HELP] Error Handler for Save Accounts Function

    hello people, how are you? i need to know how i can do to handle sugar's errors on its save function for accounts.
    For example, if anything went wrong i have to raise a handler for manage the error.

    I need something like after_save event but im using sugar4.5 and this doesn't exist

    thank you in advance!

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: [HELP] Error Handler for Save Accounts Function

    fedepia,

    You can use those methods in the other threads (exit and an error message) and you can have it call a different function before doing the exit:

    PHP Code:
    if(isset($error)) {
        
    MyHandler->handleError($error);
        exit;


  3. #3
    fedepia is offline Sugar Community Member
    Join Date
    Aug 2007
    Location
    Rosario, Argentina
    Posts
    104

    Default Re: [HELP] Error Handler for Save Accounts Function

    ok, thanks, but i asked if there is any way to handle error, for example, if i have to put some code before a save, i could do that by logic hooks.
    i thought that there is a error handler.
    well, thanks anyway

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2007-08-08, 02:47 PM
  2. SQL Error : 'ROW_NUMBER' is not a recognized function name.
    By mhoppes in forum Installation and Upgrade Help
    Replies: 16
    Last Post: 2007-08-06, 03:58 PM
  3. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  4. export function in Accounts save button
    By daska in forum Developer Help
    Replies: 2
    Last Post: 2006-07-14, 07:47 AM
  5. Replies: 1
    Last Post: 2005-09-08, 10:51 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
  •