open a new window with input-felds
// open choose window
Create a Choose box
// NOTE: You must write all in one line. & Signs are not allowed
tools=choosebox=titel=Choose Window/
myitem,Choose item=S= =select "ItemCode","ItemName" from "OITM"/
mycardcode,Choose Supplier=S= =select "CardCode","CardName" from "OCRD"
// Return the result in variable: aa + ":" + field name, example: <aa:myitem>
messagebox=Item: <aa:myitem>, CardCode: <aa:mycardcode>
field definition
name |
the object name after comma the display name (optional) Name to display (use german word-id), if you want to work international
special is "titel". With this key-word you can set the title Example title=Hello world
beas return the value in the field aa:name if you need a other displaytext, you can set the text after name + comma + word (or wordId) |
type |
N = numeric, S = String, D=Date, W=String, not changeable (only by dropdown) |
default |
default string typ D: you can use "bom" (=begin of month) as default value |
dropdown |
dropdown command
select returnvalue,displayvalue,displayvalue ... from table where ... value=returnvaule:displayvalue,returnvalue:displayvalue
for displayvalue use german word id |
return all values in Variable aa:[name]. Example
tools=choosebox=myvalue,insert value=S/number,insert number=N=0
// Canceled?
if <return> = -1 then
return -1
end if
// Display value
messagebox=result: <aa:myvalue>, <aa:number>
Example
tools=choosebox=titel=my choose list/myvalue,insert value=S/number,insert number=N=0/mylist,choose color=S=noedit:red=value=red:r,blue:b,yellow:y/mydate,insert date=D=monatanfang
messagebox=<aa:myvalue> <aa:number> <aa:mylist>