Note: Built-In Function Rules Usage Options
Drops a set of dropdown values to free up space for other sets of dropdown values.
Arguments
|
Return Values
|
Example
To drop the dropdown values for an asset code field to make room for a 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')
USE BUILTIN(DROP_DD_VALUES) WITH_ARGS(DDAC)
TO_GET(#RETCOD)
USE BUILTIN(ADD_DD_VALUES) WITH_ARGS(DDST '/'
'Raised/Open/Closed/Invoiced/History/Back Ordered')
TO_GET(#RETCOD)
ENDIF
USE BUILTIN(ADD_DD_VALUES) WITH_ARGS(DDST ' ' 'Cancelled')
TO_GET(#RETCOD)
IF COND('#RETCOD *NE OK')
* << error processing >>
ENDIF