In the onPanelStartEnd event the entry value of the argument is loaded into the display (PmgString). In the onPanelStopEnd event after pressing the OK button the value from PmgString is returned back to the object that called the CreateView method.
The CreateView method can be used for opening the panel. After opening the panel, the value will be in default state (0), but the computed value cannot be returned.
|The name of created object||Name 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.|
|Permissions||On this tab permissions of the object are defined. See the "Permission" tab of the PmaObject object.|
|Enable as Web component||Specifies 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.
if (ev.CloseReason == "ok")
Pm.Debug("CalcValue=" + ev.ReturnValue);
var nVal = 328;
var oCreator = Pm.CreateView(pMe.PmPanel, "/Calc", "", "target:_blank;dependent:1; size:panel;modal:1;");
oCreator.View.Arguments = nVal;
oCreator.View.onClose = OnClose;
Pm.CreateView(pMe.PmPanel, "/Calc", "", " target:_blank; size:250,350; ");