openwindow, opennewwindow, openchild

beasscript-logo-small

With this command you can open a windpw

 

Command

Description

openwindow

opens a child window in relation to the parent window. Before opening the window the content of the parent is saved.  

opennewwindow

same as openwindow, but without relation to the parent window. You can close parent window without closing the opened window

openchild

same as openwindow, but without saving the content of the parent window. Use this when you change information between child and  parent window but you do not want to use response .

openform

open a new form with very simple syntax. See openform

 

Every window is saved as PSR file name. Same concept as HTML pages.  PSR Files are DataWindows, created with Development System "PowerBuilder".  Most of windows have a default beas form names which you can use alternatively.
Most of windows needs parameter. The parameter are defined in a fix structure with the name str_parm. The properties are s_parm1...5 for String values, c_parm1...5 for decimal values and many more.

 

For opening the window you define the PSR file with property "dw" and with delimiter "<wintab>" you define next values, example s_parm1.

 

Syntax

openwindow=dw=<psrfile><wintab>s_parm1=<value><wintab>....

 

Example:

Open item window as new window
With Window name

openwindow=dw=beas_ItemMasterData_Edit<tab>s_parm1=RM

With PSR File name

openwindow=dw=artikel_edit.psr<tab>s_parm1=RM

With Command "openform"

openform=beas_ItemMasterData_Edit|RM

 

Note:

You can use "<tab>" or real tab char (in beas script "~t" as delimiter. But all delimiter in one command must be the same

Alternative for psr file name you can use beas form names beas form names

Some windows support different parameters

 

 

Propertys

Property

Description

dw

Name from Window

dw=<filename>

dw=beas_<beas_form names>

s_parm1 .. s_parm5

Str_parm-String-Variable 1 to 5

c_parm1 .. c_parm5

Str_parm-Decimal-Variable 1 to 5

dt_parm1, dt_parm2

Str_parm-Date-Variable

b_parm1, b_parm2

Str_parm-Boolean-Variable

pers_id

Str_parm-Personal-Number-Variable

belnr_id, belpos_id, pos_id

Str_parm-Docnumber-Variable

command

argument=<value>

modal=true

Only Child-Window:

Wait for Closing the Child-Window

 

hmtoggle_plus1Open own forms
hmtoggle_plus1Compatibility: Comma delimiter, new and newedit