Sage 100 - Determine if update is programmatic via BOI or Sage Application user

SUGGESTED

Wondering if there are some flags/properties in the BOI object that can be used to determine if an update (CI_Item in this case) are

coming from a Sage Application user or from a BOI program within a Pre-Write script.

psuedo=allow spaces when coming from BOI app update, but not when using the native Sage app.

Reasoning:

i have a Pre-Write script that prohibits users from entering spaces in new item codes. For a user in the Sage application, I do NOT want
them to enter items with spaces.

However, there are years of items which were entered with spaces. These items generally have some history, so using the

BOI application we have written which manages item codes across several Sage companies, the program will respect the existing spaces.

Otherwise we get into a large item merge project which we are stalling until we are ready.

Happy times people,

Bret

Parents
  • 0
    SUGGESTED

    from scripting doc in cUIObj can't you use 

         ' This is a Business Event script. Must test if UI is present/available

         MASUI = CBool(oScript.UIObj)

         If (MASUI) Then

                 ' Need to get my own handle to access oUIObj functionality such as InvokeChange(), InvokeLookup(), Etc.

                 Set myUIObj = oSession.AsObject(oScript.UIObj)

                 screenName = myUIObj.GetScreenName()

                 panelName = myUIObj.GetPanelName()

                 folderName = myUIObj.GetFolderName()

                 Set myUIObj = Nothing

         End If

Reply
  • 0
    SUGGESTED

    from scripting doc in cUIObj can't you use 

         ' This is a Business Event script. Must test if UI is present/available

         MASUI = CBool(oScript.UIObj)

         If (MASUI) Then

                 ' Need to get my own handle to access oUIObj functionality such as InvokeChange(), InvokeLookup(), Etc.

                 Set myUIObj = oSession.AsObject(oScript.UIObj)

                 screenName = myUIObj.GetScreenName()

                 panelName = myUIObj.GetPanelName()

                 folderName = myUIObj.GetFolderName()

                 Set myUIObj = Nothing

         End If

Children
No Data