beasgui (sbo)

beasscript-logo-small

the command beasgui is only activ in sap-enviroment

 

beasgui=...

addbutton

creates a new button in the specified form

beasgui=addbutton=<window>=<caption>=<xpos>=<ypos>=<width>=<height>

addform

creates a new SBO form.

beasgui=addform=<title>=<xpos>=<ypos>=<width>=<height>

Example:

beasgui=addform=my Form=50=50=300=200

 

addxmlform


activatemenuitem


closeallwindows

closes all current BEAS-forms, the BEAS-script forms as well as the BEAS-Childforms.

beasgui=closeallwindows

connect

Connects to the SAP Business One UI API. Is used internally for the connect to the AddOns.

beasgui=connect=<SBO AddOn connectstring>

createprogressbar


freeze

Prevents the redraw of a form. You can use it for instance, when you want to add objects to a form. Afterwards you have to deactivate the freeze for redrawing and accessing the window. If freeze=0/N/FALSE there is an automatic redraw of the window.

beasgui=freeze=<formtypeex>=1/0/J/N/TRUE/FALSE

Example:

beasgui=freeze=169=J

beasgui=freeze=168=0

getcurrentform

Gets the ID of the current SBO Form. <beasgui:getcurrentform>

getcurrentformtypeex

Gets the type of the current SBO Form. <beasgui:getcurrentformtypex>

getcurrentmenuid

Gets the ID of the current menu. <beasgui:getcurrentmenuid>

getform

Gets the UniqueID of the specified form-type via the counter beasgui=getform=<formtype>[=<count>]

isalive

Checks if the BEASGUI is still connected to  SAP. If SAP is no longer active or SAP is no longer connected it returns an  Errorcode, else SUCCESS (0). This function is called every 10 seconds from the BEASTIMER.

beasgui=isalive

Errorcodes:

 -1 ... invalid SBO application object

       -2 ... SBO application object is not alive

 -3 ... Could not create snapshot

 -4 ... Error while reading running processes

 -5 ... SBO is not running

beas write this Code in Variable "is_alive" ( > beas2009-0-3-14)

Example

beasgui=isalive

messagebox=<is_isalive>

isconnected

Checks if the BEASGUI is connected to SAP

beasgui=isconnected

redraw

Redraws the specified form beasgui=redraw=<formuid>

Example: beasgui=redraw=<beasgui:getcurrentform>

restart

Restarts the BEASGUI. All opened BEAS-windows are closed and all menus and items from SBO removed.

beasgui=restart

Example:

beasgui=restart

resizeform

Resizes position and size of the specified SBO-form.

beasgui=resizeform=<formuid>=<xpos>=<ypos>=<width>=<height>

setfocus

Sets the focus to the specified form. If the form has a BEAS-Childwindow then the focus is passed-on to the childwindow.

beasgui=setfocus=<formuid>

starttimer

Starts the BEASTIMER if not yet active. The BEASTIMER checks every 10 seconds if the BEASGUI is still connected with SAP Business One. If the connection is interrupted BEAS is stopped immediately. If the connection is still alive all BEAS forms are refreshed. (see refresh).

beasgui=starttimer

stop

Stops the BEASGUI

beasgui=stop

stoptimer

Stops the BEASTIMER if active.  

beasgui=stoptimer

refresh

Refreshes all BEAS-forms.

This function is called every 10 Seconds internally from the BEASTIMER if the connection is still alive (s. isalive).

beasgui=refresh

language

Get Language ID from SAP

beasgui=language

message=<value>

activatemenuitem

Activates a specific SBO menu UID

 

beasgui=activatemenuitem=XXXX

ignoreformbyuid

ignoreformbytype



.