Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Object PmfNumber

Description:
This object represents one form item of the type: "Integer or real number input".
Properties and methods of this object:
EditType Editing type
Min Minimum value
Max Maximum value
Subtype Specifies whether the object displays/inputs integer or real number
Value Pmf object value
ValueHorzAlign The way of horizontal number alignment
Properties and methods that are common to all objects of the PmfObject type:
AddEvent Registers a function into selected event
BodyHeightIni Initial body height
BodyHeightMode Changing body height
BodyWidthIni Initial body width
BodyWidthMode Changing body width
Enabled Enable/disable editing of values.
Id Pmf object identifier
PrivateData Reading or writing private value into the object
RemoveEvent Deregisters the function in the specified event
Title Displayed name of the Pmf object
TitlePos Position of displayed Pmf object name
Type Pmf object type
Visible Sets the visibility/invisibility of Pmf object.
Events:
onEditAccept Is triggered after the editing is finished and the edited value is saved.
Note:
- The object can be created by the method PmForm.CreateItem("number", ..).
- This object is functional also in Web panels.
Example1:
Script creates one form item. It is presumed that the oForm object already exists.
JavaScriptSelect and copy to clipboard

var oNmb = oForm.CreateItem("number", "id_nmb");
oNmb.Value = 5;

History:
Pm8.03.08: Created
Pm9.00.00: Renamed from int, float to number
PROMOTIC 9.0.8 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice