Object PmfEnum
Description:
This object represents one form item of the type: Selection of one of multiple items (combo box).
Properties and methods of this object:
| AddRow() | Adds new row into the menu |
| DeleteRow() | Delete menu content |
| Format | The property returns or sets the format of the value that will be displayed in the object |
| Value | Pmf object value |
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 (combo box) 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;