Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Preconfiguration "Window with keyboard for entering numeric values"

The window contains numeric keyboard (only numeric values can be entered) Very useful for touchscreen terminals.
 
This preconfiguration can be activated when creating a new object (e.g. by "New object ..." in the local object menu or after pressing the Insert key after selecting the object) and is included in the group: " / Panels (PmaPanel) / Keyboard".

This preconfiguration can be used with the objects: 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 a Web panel.
 
The OpenView method can be used with entry parameter oExtra to open the panel. See How to work with modal windows.

The numeric and function buttons (PmgButton) in the onButtonUp event allow modifications on the result display (the PmgNumber object).

In the onPanelStartEnd event the entry value of the argument is loaded into the display (the PmgNumber object). In the onPanelStopEnd event after pressing the OK button the value from PmgNumber is returned back to the object, that called the OpenView method.

These configurators can be set before the preconfiguration is created:
The name of created objectName of the object created in the tree of Pma objects. The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics, empty string, spaces and the first character must not be a number.

Default: "KeybNum"

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 entry numeric value n will be displayed in the Pmg object of the window.
 
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")
Pm.Debug("KeybNumValue=" + ev.ReturnValue);
}

var nVal = 328;
var oCreator = Pm.CreateView(pMe.PmPanel, "/KeybNum", "", "target:_blank;dependent:1; size:panel;modal:1;");
oCreator.View.Arguments = nVal;
oCreator.View.onClose = OnClose;
oCreator.Open();
 
This preconfiguration is used in PreCfg - Preconfiguration examples.
PROMOTIC 9.0.13 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