ui.ComboBox methods

Methods of the ui.ComboBox class.

Table 1. Class methods
Name Description
ui.ComboBox.forName(
   name STRING )
  RETURNING result ui.ComboBox
Search for a combobox in the current form.
ui.ComboBox.setDefaultInitializer(
   funcname STRING )
Define the default initializer for combobox form items.
Table 2. Object methods
Name Description
addItem(
   value STRING,
   label STRING )
Add an element to the item list.
clear()
Clear the item list of a combobox.
getColumnName()
  RETURNING result STRING
Get the column name of the form field.
getIndexOf(
   name STRING )
  RETURNING result INTEGER
Get an item position by name.
getItemCount()
  RETURNING result INTEGER
Get the number of items.
getItemName(
   position INTEGER )
  RETURNING result STRING
Get an item name by position.
getItemText(
   position INTEGER )
  RETURNING result STRING
Get the item text by position.
getTableName()
  RETURNING result STRING
Get the table prefix of the form field.
getTag()
  RETURNING result STRING
Get the combobox tag value.
getTextOf(
   name STRING )
  RETURNING result STRING
Get the item text by name.
removeItem(
   name STRING )
Remove an item by name.