Update cookies preferences
Promotic

Preconfiguration "Time inputbox"

The window contains time (without date) input box.

This preconfiguration can be activated when creating a new object (e.g. by "New object ..." in the context menu of the object or by pressing the Insert key after selecting the object).
 
This preconfiguration is included in the "/ Panels (PmaPanel) / Date and time inputbox" group.
 
This preconfiguration can be created in the PmaFolder, PmaRoot, PmaPanel, PmaWorkspace or PmaPrototype object.

- The preconfiguration creates an object of the PmaPanel type.
- The preconfiguration is created including the panel (object of the PmaPanel type) is functional also as Web panel.


The arrow buttons (of the PmgButton type) in the onButtonUp event allow changes in time input item (in the PmgWEdit object).
In the onPanelStartEnd event, the input values of the argument are are read into the corresponding PmgWEdit objects. In the onPanelStopEnd event, the PmgWEdit values are joined into the variable. The variable is then returned back to the object that called the CreateView method.
These configurators can be set before the preconfiguration is created:
The name of created objectName of the object created in the Pma object tree.
The maximum name length is 30 characters.
This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent characters), empty string, spaces and first character must not be a number.
Default: "SetTimeDlg"
PermissionsOn this tab permissions of the object are defined. See the "Permission" tab of the PmaObject object.
Enable as Web componentSpecifies whether this object has to be registered as a Web server component
After the preconfiguration is created, the "PmaPanel > Web server > Enable as Web component" configurator will be set to this value.
Example:
The input value dTime (current time) will be displayed in Pmg objects of the window. The edited value will be returned into the val variable.
Open the preconfigured window in the panel in the onButtonUp event of the PmgButton object.
JavaScriptSelect and copy to clipboard

function onClose(ev)
{
if (ev.CloseReason == "ok")
{
var val = ev.ReturnValue;
Pm.Debug("time=" + val.Format("%H:%M:%S"));
}
}

var dTime = Pm.CreatePmDateObject().GetValue();
var oCreator = Pm.CreateView(null, "/SetTimeDlg", "", "target:_blank;dependent:1;size:panel;modal:1;");
oCreator.View.Arguments = dTime;
oCreator.View.onClose = onClose;
oCreator.Open();


This preconfiguration is used in PreCfg - Preconfiguration examples.
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

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