system.betamodus
|
x
|
|
returns true if beta mode is active
gapp.of_mget("betamodus","N") J/N
|
system.common
|
x
|
|
returns true if common service is active
if gapp.of_common()=1=active / 0=not active
|
system.helponline
|
|
x
|
Opens online help system
You can define the link
system.helponline=mychapter#myanker
|
system.databasetype
|
x
|
|
Returns MSSQL or HANA - defined fix in the program gapp.is_databasetype
|
system.debug
|
x
|
x
|
Returns current Debug Level : messagebox=<system.debug> gapp.is_debug
Available functions:
Function
|
Description
|
on
|
activates the debug
system.debug=on
|
off
|
disables debug, but does not close it
|
close
|
closes debug window
|
level=[0...2]
|
defines debug level
In this way you can change the level inside your script
system.debug=level=2
.... my script
system.debug=level=1
|
html
|
returns debug log as html in variable "<value>"
system.debug=html
messagebox=<value>
|
html=<variablename>
|
returns debug log as html in variable "<variablename>"
system.debug=html=debughtml
messagebox=<debughtml>
|
htmlfile=<filename>
|
Creates a debugfile in html format in the specified file
system.debug=htmlfile=c:\debug\debug.html
|
mirror
|
Mirrors the main information of the current window
This way you can see "inside" of the function in the actual moment
system.debug=mirror
|
|
|
system.desingfolder
|
x
|
|
Folder for the icons of the current design gapp.is_pf_design
|
system.devmode
|
x
|
|
returns true if development mode is active gapp.ib_entwicklung
|
system.enablemenuitem.XXX
|
x
|
|
Enables a menuID. This function works in both environments (Beas Standalone and Beas into SAP)
|
system.eventname.x
|
x
|
|
<system.eventname.1> = Double-click
<system.eventname.2> = Form load and so on
|
|
system.exit[=true/false]
system.kill[=true/false]
|
|
x
|
system.exit --> tries to close all windows and closes the application
system.exit=true --> asks if the application should be closed
system.kill --> closes the application immediately without closing the open windows
system.kill=true --> asks if the application should be closed
|
|
system.form
system.window
|
x
|
x
|
system.windows.count -> returns count of active windows
system.windows.id -> returns drop-down value (name=id) from all current active windows
system.windows.dwname -> returns drop-down value (name=name) from all current active windows
|
system.form.[name].setfocus
|
Window receives the focus
Example:
system.form.artikel_browse.setfocus
|
|
|
|
|
system.insidesap
|
x
|
|
Started inside SAP true / false gapp.is_beasgui true/false
|
system.project
|
x
|
|
Return current Project Name (for customizing) gapp.is_mandant
|
system.qualtitycontrol
|
x
|
|
true, if quality mode is active. You can set this in gapp.ib_qualitycontrol
beas.ini - CONNECT - qualitycontrol=y
|
system.servermodus
|
x
|
|
returns true, if servermodus is activated. In this mode Beas does not display any messages and does not open question or other modal forms.
you can set this with
app=servermodus=true/false gapp.il_servermode 0/1
|
system.location
|
x
|
x
|
current location (web app - print solution) gapp.is_location beas 9.3 PL 2
|
system.app_id
|
x
|
x
|
current running app ID (web app - print solution) gapp.is_app_id beas 9.3 PL 2
|
system.session_id
|
x
|
x
|
WebApp session ID gapp.is_session_id beas 9.3 PL 2
|
system.sessionname
|
x
|
x
|
Current Windows Session Name gapp.is_sessionname
returns the station name, which Beas is using for current session gapp.is_stationname
|
system.stationnameinfo
|
x
|
|
describes, in which way Beas defined the stationname
|
system.systemtest
|
x
|
|
Start parameter requires a systemtest gapp.is_systemtest "true"/"false"
|
system.store
|
x
|
x
|
Beas can work with "public variables".
These are visible in every area, every window, in the complete task. If you close Beas, you will lose all public variables which are only visible between definition and running time.
write a global variable (store in the system)
system.store.myvariable=<value>
read a setup variable
<system.store.myvariable>
you can work with variables on variable name to
setvar=test=myglobalvariable
system.store.<test>=<value>
this write your value in the global variable setting "myglobalvariable"
|
|
system.setup
|
x
|
x
|
Beas has a setup table in which all database related settings saved. With this method you can write and read every variable
write a setup variable
system.setup.myvariable=<value>
read a setup variable
<system.setup.myvariable>
you can work with variables on variable name to
setvar=mysetup=mysetting
system.setup.<mysetup>=<value>
this writes your value in the database setting "mysetting"
Use internal cache system
if the variable is not a counter or setting that you do not change every hour, use the variable "<system.msetup>". This uses the internal cache and is gradually faster.
|
|
system.msetup
|
x
|
|
Beas has a setup table in which all database related settings saved. With this method you can write and read every variable
read a setup variable from internal cache
<system.msetup.myvariable>
you can write a setup variable with
system.setup.myvariable=<value>
if the variable not inside the cache, Beas loads it from the database
if you change a variable, the cache in the current task is updated too, but not on other stations or other tasks.
Beas performs a refresh every hour.
use this only if the variable is not a counter or setting, which you don't change every hour.
|
|
system.counter=value
|
x
|
|
<system.counter=[value]>
creates and reads a counter for the defined value
Example:
messagebox=<system.counter=mycounter1>
First execute: 1
Second execute: 2
Third execute: 3
return -1 in error case, example database error
Powerbuilder: ll_counter=gapp.of_counter(var)
beas 9.3 PL 2
|
|
system.terminalmodus
|
x
|
|
Returns true if Beas is running as terminal gapp.is_terminalmodus "true"/"false"
|
system.window.[name]...
|
x
|
|
Return ItemCode from current active item master data window
if not active, system return nothing
<system.window.artikel_edit.dw_1.item.itemcode.value>
|
|
system.windowsuser
|
x
|
|
Current Name of Windows User gapp.is_widnowuser
|
system.hostname
|
x
|
|
Return the current host name beas 9.3 PL 3
|
system.ipaddress
|
x
|
|
Return own ip address beas 9.3 PL 3
|