Loading a Combo Box from a UDC

The combo box control supports string and numeric data types for the combo box's keys and the matching descriptions are always treated as strings. Dynamic changes to a combo box based on a UDC can be made with the system functions Set Data Dictionary Item or Set Data Dictionary Overrides to load a new set of key (value)/description pairs.

If the application must support multiple languages, loading from a UDC is probably an ideal choice because of the way JD Edwards EnterpriseOne applies alternate UDC lists automatically based on the user's language code. An alternative to dynamically changing the values displayed in a combo box at runtime is to use the Set Data Dictionary Item or Set Data Dictionary Overrides system functions to load the correct set of values as needed. You can suppress inappropriate list items within an existing combo box item list using the Remove Item system function. If you must set up the combo box based on a non-UDC DD item but translated descriptions still need to be displayed to the user, you have some options.

You can use the ER system value, SL LanguagePreference, to acquire user's language preference. Use that value to fetch and load items into the combo box manually from the appropriate UDC table (F0005 standard UDC table, or F0005D translated UDC table).

Alternatively, you can define the necessary description items as text variables in the application and then use these text variables in conjunction with the Add Item system function to add the items to the combo box.

Runtime always loads from the UDC if one is associated with the combo box's data dictionary item. If the combo box is loaded from a UDC and you want to load from a non-UDC source instead, use Set Data Dictionary Item to associated a data dictionary item that does not have a UDC with the combo box. Then you can load from cache or use Add Item instead.