The ComboBox class / ui.ComboBox methods |
Get the column name of the form field.
getColumnName() RETURNING result STRING
The getColumnName() method returns the form field column name. The form field column name can be NULL if not defined at the form field level.
Use the getTableName() and getColumnName() methods together in order to identify the form field associated with the COMBOBOX. This allows to identify the combobox field in your program, for example to fill the drop down list with the appropriate items.
IF cb.getTableName()||"."||cb.getColumnName() == "customer.cust_city" THEN CALL cb.clear() CALL cb.addItem(1, "Paris" ) CALL cb.addItem(2, "London" ) CALL cb.addItem(3, "Madrid" ) END IF