Object PmfEnum
Description:
This object represents one form item of the type: Selection of one of multiple items (Combobox).
Properties and methods of this object:
Properties and methods that are common to all objects of the PmfObject type:
Events:
onEditAccept | Is triggered after the editing is finished and the edited value is saved |
onFocus | Is triggered if the Pmf object gets or loses focus |
Note:
The
PmfEnum object serves for selection of a single value from multiple options. The selection procedure: by clicking the mouse on the configurator expands multiple rows (
ComboBox) with displayed text (the
sName parameter).
Example1:
Script creates one form item. It is presumed that the oForm object already exists.
JavaScriptSelect and copy to clipboard
var oEnum = oForm.CreateItem("enum", "id_enum");
oEnum.AddRow(1, "Test1");
oEnum.AddRow(2, "Test2");
oEnum.Value = 1;