The name of created object | Name 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: "SetTimeFromTo" |
---|---|
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. |
function onClose(ev)
{
if (ev.CloseReason == "ok")
{
var aVal = ev.ReturnValue;
if (Pm.IsValid(aVal))
{
Pm.Debug("time1=" + aVal.GetItem(0).Format("%H:%M:%S"));
Pm.Debug("time2=" + aVal.GetItem(1).Format("%H:%M:%S"));
}
}
}
var t1 = Pm.CreatePmDateObject();
var t2 = Pm.CreatePmDateObject();
t2.SetHour(t1.GetHour() + 1, t1.GetMinute(), t1.GetSecond());
var aTime = Pm.Array1(t1, t2);
var oCreator = Pm.CreateView(null, "/SetTimeFromTo", "", "target:_blank;dependent:1;size:panel;modal:1;");
oCreator.View.Arguments = aTime;
oCreator.View.onClose = onClose;
oCreator.Open();