form (sbo)

beasscript-logo-small

In SAP B1 you have forms.

In beas you have windows. If you work with window forms, see object window

 

Form-Function:

Here you DO NOT have to start with a beasgui=

Possible is:

form=click=114

or

beasgui=form=click=114

 

FORM

 

mode

mode

0: Specifies the form in Find mode.
1: Specifies the form in OK mode.

2: Specifies the form in Update mode
3: Specifies the form in Add mode.

4: Specifies the form in View mode.
5: Specifies the form in Print mode.

 

example

form=mode

if <e_mode> <> 0 then

 return

end if

 

if <form.mode> <> 0 then

 return

end if

title

set or read title. return in "value"

move=x=y

move the window

x=<value>, left=<value>

set or read the x-property

y=<value>, top=<value>

set or read the y-property

height=<value>

set or read the height-property

width=<value>

set or read the width-property

freeze=y/n

Freeze  the form

click=<item>

Call item-Click-Event

formuid

uid from the form

formtypeex

Form-Type (Expample 149, 150 ..)

formtypecount

Nr from the FormType (0,1,2...)

form=create=button=<property>

Create Button
Propertys:
top, left, height, width, name, text, description
create=button=name=myButton,Text=<spr:Kalkulation>,top=400
windowevent itempressed myButton

end evend

 

 

Example

 

form=freeze=y

setitemdata=5=newEntry

form=freeze=n

// Order: Click "Logistic"

form=click=114