Update cookies preferences
Promotic

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:
AddRow()Adds new row into the menu
DeleteRow()Delete menu content
ValuePmf object value
Properties and methods that are common to all objects of the PmfObject type:
AddEvent()Registers a function into the specified event
BodyHeightIniInitial height of the Body area
BodyHeightModeThe way of changing the Body area height
BodyWidthIniInitial width of the Body area
BodyWidthModeThe way of changing the Body area width
EnabledEnable/disable editing of values
IdPmf object identifier
PrivateDataPrivate value of the object
RemoveEvent()Unregisters the function in the specified event
TitleDisplayed name of the Pmf object
TitlePosPosition of the Title area of the Pmf object
TypePmf object type
VisibleThe property returns or sets the visibility/invisibility of Pmf object
Events:
onEditAcceptIs triggered after the editing is finished and the edited value is saved
onFocusIs triggered if the Pmf object gets or loses focus
Note:
- The object can be created by method PmForm.CreateItem("enum", ...).
- This object is functional also in Web panels.


The PmfEnum object serves for selection of a single item 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;

History:
Pm8.03.08: Created
PROMOTIC 9.0.28 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.