item (sbo)

beasscript-logo-small

Item-Propertys for SAP Business One Forms.

 

item=itemuid=property...

 

row

Read/Write Current Row

Only Grid, Start with 1

rowcount (or maxrow)

Rows of the Grid

Grid

getrow

Current Row of the Grid

Grid

click

Click the object

all objects

enabled=false/true

Set Enable true/false or get the status in "value"

all objects

visible=false/tue

Set Visible true/false or get the status in "value"

all objects

caption or text=<Text>

Set the Caption

Button

description

Set the Description of the Oject

all objects

left

Set or Read the left-Property

all objects

top

Set or Read the top-Property

all objects

height

Set or Read the height-Property

all objects

width

Set or Read the width-Property

all objects

active=false/true

Set or Read the active-Property

Edit-Object

value (or blank)

Set or Read the value-Property

Edit-Object,TextEdit, Combobox, Checkbox

blank

Set a empty value to field

Edit-Object,TextEdit, Combobox, Checkbox

string

Set or Read the string-Property

Edit-Object

valon

Returns or sets a string specifying the data source value when the item is not selected

checkbox,Optionbtn

valoff

Returns or sets a string specifying the data source value when the item is  selected

checkbox,Optionbtn

row=[x]=col=y

in Grid-Object: Row und Col des Objektes ansprechen.

Row is not mandatory. In this case the current row is set


setcellfocus=row=col

Set focus to a specific cel of a matrix.

Row and col are mandatory


backcolor

Set a backcolor to background. The value is an RGB value in long representation. You can use the standard Visual Basic colors, for example, vbBlue and vbYellow.

The valid range for a normal RGB color is 0 to 16,777,215 (&HFFFFFF).


forecolor

Set a ForeColor to field. The value is an RGB value in long representation. You can use the standard Visual Basic colors, for example, vbBlue and vbYellow.

The valid range for a normal RGB color is 0 to 16,777,215 (&HFFFFFF).


 

Attention

You can only set visible fields. Otherwise you get a error. You can disable the error-message with setvar=sys_disableerrormessage=true

in error case the Value sys_itemsetvalue is set to -1

 

 

Examples:

setvar=myVar=<item 10>

setvar=myVar=<item 10=value>

 

messagebox=<item 10=value>

item=10=value=Hello

item=1=enabled=false

item=mybutton=caption=NewSave

 

Matrix:
messagebox=X-Pos: <item 38=x>
messagebox=Item in current Row: <item 38=col=1>, Rowcount: <item 38=rowcount>, Visible Rows: <item 38=visualrowcount>
item=38=col=1=ART01

item=38=row=3=col=U_MyField=value=ART01

 

Check valid field

setvar=sys_itemsetvalue=0

setvar=sys_disableerrormessage=true

item.38.column.U_myfield.value=hello world

if <sys_itemsetvalue> = -1 then

 messagebox=error$Please activate field MYFIELD in SAP Form settings.

 return failure

end if

 

 

For a loop in a matrix you can specify the row with [..]

for=loop=1=<item.38.rowcount>

 messagebox=<item=38=row=[loop]=col=1=value>

next