Update cookies preferences

Preconfiguration "Date and time inputbox"

The window contains input box for date and time.

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) and is included in the group: "/ Panels (PmaPanel) / Date and time inputbox".
This preconfiguration can be created in the object: PmaFolder, PmaRoot, PmaPanel or PmaWorkspace.

- 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.

In the onPanelStartEnd event the value of entry argument is read. Then the value is processed and divided into buttons representing day of the month and into corresponding PmgWCombo objects (year, month, hour, minute, second).
In the onPanelStopEnd event after pressing the "OK" button the values of these Pmg objects are processed and the resulting value is returned back to the object from which the CreateView method was called.
These configurators can be set before the preconfiguration is created:
The name of created objectName of the object created in the Pma objects 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 the first character must not be a number.
Default: "SetDateTime"
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.
PmaWeb objectPath in the Pma objects tree to the object PmaWeb, PmaWebFolder or PmaWebLang where the registration is carried out.
Macro expression can be used for input (it is evaluated after the application is launched).
After the preconfiguration is created, the "PmaPanel > Web server > PmaWeb object" configurator will be set to this value.
The input value t (current date and 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("datetime=" + val.Format("%d.%m.%Y %H:%M:%S"));

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

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

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