9.56 DROP_DD_VALUES

Note: Built-In Function Rules     Usage Options

Drops a set of dropdown values to free up space for other sets of dropdown values.

Arguments

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

A

Req

Dropdown name

Must begin with DD

4

4

 

 

 

Return Values

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

A

Req

Return code. Returned values possible are:

OK: Values dropped successful

ER: Error occurred

2

2

 

 

 

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