setitem

beasscript-logo-small

setitem=[column-name]=[value]

 

the column gets the value.

the value also can be a placeholder.

works only with formular dw_1. only beas-Forms

 

Example:

 

setitem=beldat=<today>

 

you can work with placeholder

Example:

This function create an array (variable ll_var1,ll_var2,...ll_var10)

for ll_loop=1 to 10

 setvar=ll_var[ll_loop]=<ll_loop>

next

 

other solution

dw_1.item.columname.value=...

item.columnname.value=...

item.columnname.setvalue=... (with trigger itemchange)

 

 

help-achtungsetting a value with setitem the event "itemchange" of this column is not triggered automatically. If you want to validate the column use setitemcheck

 

Characteristics to the setxxxx-commands

 

preventing placeholder-commands

With the prefix % you can prevent the placeholder-commands, e. g.

%setitem=[table-field]=addchar(adam,eva)

The table-field gets the value "addchar(adam,eva)"

Without %: "adameva"

 

SELECT-command

if a setting starts with "select" the SELECT-command is executed directly.

settext=t_ub=select [table-field] from [table]....

I. e. you do not have to mask  the Select-command with < >

 

if you want to fill a text without expand the placeholder, use function "%column()" or "%var()"

Example:

setitem=mycolumn=%column(parent,dw_1,itemdescription,dbstring)