9.6 ADD_DD_VALUES
Þ Note: Built-In Function Rules.
Adds either a new set of dropdown values or appends to an existing set of dropdown values.
For use with
|
Arguments
|
Return Values
|
Example
To set up the dropdown values for an order status field:
DEFINE FIELD(#RETCOD) TYPE(*CHAR) LENGTH(2)
USE BUILTIN(ADD_DD_VALUES) WITH_ARGS(DDST '/'
'Raised/Open/Closed/Invoiced/History/Back Ordered')
TO_GET(#RETCOD)
IF COND('#RETCOD *NE OK')
* << error processing >>
ENDIF
USE BUILTIN(ADD_DD_VALUES) WITH_ARGS(DDST ' ' 'Cancelled')
TO_GET(#RETCOD)
IF COND('#RETCOD *NE OK')
* << error processing >>
ENDIF