Properties

 

<tabobject>=debug=true/false

aktivate debug modus

<tabobject>=add=<tab name>=<text>

Adds a rider.
tabname=name of the rider.

text=Labeling of a rider. There is no automatic translation

 

Example

<tabobject>=reset

Reset all riders

<tabobject>=name=<tab name>=<newtext>

 

Example

Change Text for ue_tab "ltab", rider "itemtab" to "hello world"

 

etab=name=itemtab=hello world

<tabobject>=losefocus=<name>=<script>

Losefocus-Script.If the rider loses his focus, the script defined here is executed.

Also various events can alternatively be used.

The script deposited so has a low priority.

If false is given back or the value is set to -1, no TAB change is carried out.

<tabobject>=getfocus=<name>=<script>

Getfocus-Script. The here defined script is run when the rider gets his focus. Alternatively, various events can also be used.

<tabobject>=refdw=<tabname>=dw_x

 

ue_Tab takes over the positioning and visible control, but doesn't build up the DW and makes no retrieve. In Losefocus is set visible = false.

dw_2.init=myitemgroup.psr

dw_2.design=liste

dw_2.retrieve=<str_parm.s_parm1>

etab.add=itemgroup=<spr:Artikelgruppe>

etab.refdw=itemgroup=dw_2

 

<tabobject>=refrtf=<tabname>=<column>

Standard text field, associated with the specified field name

<tabobject>=redraw

screen rebuild

<tabobject>=dw=dw_x

Determines in which DataWindow (1 .6) the object is visualized

<tabobject>=x,y,width,height

Position and size. 0-0 = upper left corner of the selected object

<tabobject>=xscript,yscript,widthscript,heightscript

Dynamic position and size. If these properties are set, then the coordinates will automatically calculated after a resize, eg automatic fixation on the right side

etab=widthscript=%sub(<window.width>,2500)

Up to beas2008-0-13: use "max"

etab.widthscript=max

etab_heightscript=max

<tabobject>=color=<rgb:r:g:b>

set the color of font

more info see rgb

Example: Red text in Tab "page1"

etab=color=page1=<rgb:192:0:0>

<tabobject>=visible=<tabname>=<script>

Script for visible control. Return false / true sets the visibility.

Multi-line script: line feed indicates with <cr_lf>

etab=visible=firsttab=if <myvalue> = 1 then<cr_lf>return true<cr_lf>end if<cr_lf>return false

<tabobject>=setcurrenttab=name

Changes to the defined tabs. Name = name of the tab (not the title). Can also be the number.

<tabobject>=setunvisible

destroy all objects, but do not destroy the object. New redraw with "redraw"

to disable and unvisible the object:

tb=enable=false

tb=setunvisible

<tabobject>=buttonadd=tabname=buttonname=text=command

Adds for the specified tab a button.

tabname=Name of the tab

buttoname=Name of the button

text=Caption of the button

command=Command, which will be executed automatically. It can also be used the events.

<tabobject>=preupdate

Start preupdate-Event for the current tab

<tabobject>=update

Start update-Event for the current tab

<tabobject>=buttonreset

All button settings are reset.

<tabobject>=addarea=<tabname>=<object>

An area which is encircled from the mentioned object.

<tabobject>=addobject=<tabname>=<objectname>=x,y,width,height

addobject=<tabname>=<objectname>=nextlinefrom=<objectname>

Object name (eg a field) to add to tabulator

As width / height may also be used 9999 . It will always be correseponding fitted

 

with "nextlinefrom=fromobjectname" the field has the same x, width and height as the "fromobjectname" and y = y from the "fromobjectname" + 64.

 

if you wan't create a textfield and right column, then create first the column and then the textfield. Only in this way you've an underlined textfield.

etab=addnewobject=fbatch=myfield=column=userfield1=nextlinefrom=setscrap

etab=addnewobject=fbatch=myfield_t=text=hello=nextlinefrom=setscrap_t

etab=redraw

 

<tabobject>=addnewobject=<tabname>=<objectname>=<columntyp>=<propertie>=<nextlinefrom/x,y,width,height>

Note: This function is only available for compatibility

Please use the dw_1.create command.

 

dropdown: propertie = id userfield1 ... userfieldx Create Dropdown-Field

column: propertie = id userfield1 ... userfieldx

checkbox: create checkbox with Y/N. Id = userfield1 ... userfieldx (beas 9.3 PL 1)

text: propertie = Text

bitmap: propertie = Bitmapname

// example new fields im item-Window

windowevent postopen
etab=addnewobject=stamm=class_f=column=userfield2=3010=88=400=60
etab=addnewobject=stamm=class_f_t=text=Business=3410=88=400=60
etab=addnewobject=stamm=class_b=column=userfield2=nextlinefrom=class_f
etab=addnewobject=stamm=class_b_t=text=Business=nextlinefrom=class_f_t

end event

 

with "nextlinefrom" you can set the position relative to a other field.

It is better to work with t"nextlinefrom"

 

You can use "addnewobject" only for existing fields in the datastore. Not all Windows have the "userfieldx"-Fields in the Datastore.

 

You must set first the Column and then the textfield. Only then the Textfield make a underline to the Column.

<tabobject>=object=<tabname>=<objectname>=<propertie>=<value>

A property of a defined object can be set. This is only accordingly drawn after a redraw.

Property:

width, height, x, y, protect, visible

Example: set item itemcode in area stamm to protect

etab=object=stamm=itemcode=protect=1

etab=object=stamm=description=height=500

<tabobject>=udf=<tabname>=<udfname>

sets the visibility and name of the 4-UDF fields (udfname1-4) to the specified tab.

<tabobject>=debugobjectlist

List all objects in the debug-window

<tabobject>=draw1tab=true

Normaly beas don't draw the tab if you've only one tab

if you set this parameter, beas draw allways the tab

 

 

Variables (up to beas2008-0-13)

<objectname.x>

x-coordinate

<objectname.y>

y-coordinate

<objectname.width>

width

<objectname.height>

height

<objectname.clientx>

x-coordinate from the client-area

<objectname.clienty>

y-coordinate from the client-area

<objectname.clientwidth>

width from the client-area

<objectname.clientheight>

height from the client-area

<objectname.currenttab>

Number of current Tab

<objectname.currenttabname>

Name of current Tab

 

 

Userevents

windowevent tabfirstredraw objectname

First redraw

windowevent tabredraw objectname

execute bevor redraw the tab

 

Example:

youtube Insert UDF 5 in Routing Position

(you need beas 9.2 PL: 03)

 

Example:

Create Dropdown-Field in Routing-Position in first Tab after the "Number of payslips"-Field

windowevent postopen

etab=addnewobject=stamm=bomfield=dropdown=userfield1=nextlinefrom=anzls

etab=addnewobject=stamm=bomfield_t=text=bom - Position=nextlinefrom=anzls_t

item.bomfield.dropdown.select pos_id,art1_id from beas_stl where itemcode = '<itemcode>'

end event

 

Example:

new Tab in menu from calculation (Tabobject = etab, Datawindow=dw_2, sub-Tab=fbatch)

You need the event: postevent, because the datawindow is create after open-Event!

windowevent postopen

etab=addobject=fbatch=myfield=1500,100,300,60

etab=add=mytab=my tab

etab=addobject=mytab=myfield_t=40=240=605=60

etab=addobject=mytab=myfield=610=240=290=60

end event

 

Example

Add Tabsheet in the item-Window with 2 new fieds

 

windowevent postopen

etab=add=tab01=Onglet

etab=addnewobject=tab01=itemcode1=column=userfield1=320=90=370=60

etab=addnewobject=tab01=itemcode1_t=text=Code=20=90=300=60

etab=addnewobject=tab01=description1=column=userfield2=nextlinefrom=code

etab=addnewobject=tab01=description1_t=text=Description=nextlinefrom=code_t

 

sql=select itemcode, itemname from oitm where itemcode=N'<itemcode>'

item.itemcode1.value=<wert1>

item.description1.value=<wert2>

end event

 

Example

Set the Item-Comments in the first page too

 

windowevent postopen

// First set column to "stamm"-page

etab=addobject=stamm=usertext=30=860=1480=600

end event

windowevent etab_getfocus_usertext

// if tab "usertext" then set the column to this page

etab=addobject=usertext=usertext=20=00=10000=480

end event

windowevent etab_getfocus_stamm

// if tab "stamm" then set the column to this page

etab=addobject=stamm=usertext=30=860=1480=600

end event

 

Example

Rename tab "General" into Item master data form

 

windowevent postopen

 etab=name=stamm=General modified name

end event

 

Example

Rename ltab "Foreign language" located into "Remarks" tab of Item master data form

 

windowevent tabfirstredraw ltab

 ltab=name=nflangbez=hello world

end event