response (search)

beasscript-logo-small

OLD FUNCTION. DON'T USE IT

 

Opens a response-window (Search-window, select-window) and writes the result of a selection back to the specified items.

 

 

A response window returns str_parm when the OK-button is clicked.

When you call a response window you can specify where the result should be written to.

You can return more then one result-text.

 

response=datawindowname=returnitems=pass-onitems=command

response=[datawindowname]=[targetitem]:[str_parm],[targetitem]:[str_parm]=[str_parm]:[<targetitem>]

 

The result only gets written to the targetitems when you click OK.

 

Example:

Code for the MASTER of the response-window:

return:s_parm1=<aplatz_id>

 

Call of the response-window:

response=arbplatz_search.psr=aplatz_id:s_parm1

The return value of s_parm1 gets written to the DataWindow-column.

 

To set a default value in the response-window:

response=arbplatz_search.psr=aplatz_id:s_parm1= =eingabe=<aplatz_id>

 

The return value can be passed-on to a command directly via the prefix "!". The return value is contained in the value "data" (without < .. >) . Not "=" but "-" is used. Example:

response=arbplatz_search.psr=!setstr-s_parm1-data:s_parm1

The command sequence !setstr-s_parm1-data gets interpreted as

setstr=s_parm1=<return value>

 

see

dropdown