ui.ComboBox methods

Methods of the ui.ComboBox class.

Table 1. Class methods
Name Description
ui.ComboBox.setDefaultInitializer(
   funcname STRING )
Define the default initializer for combobox form items.
ui.ComboBox.forName(
   name STRING )
  RETURNING result ui.ComboBox
Search for a combobox in the current form.
Table 2. Object methods
Name Description
clear()
Clear the item list of a combobox.
addItem(
   value STRING,
   label STRING )
Add an element to the item list.
getColumnName()
  RETURNING result STRING
Get the column name of the form field.
getTableName()
  RETURNING result STRING
Get the table prefix 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.
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.