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 (i.e. national dependent chars), empty string, spaces and the first character must not be a number.
Default: "SetDateTime" |
---|---|
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. |
PmaWeb object | Path in the tree of Pma objects to the object PmaWeb, PmaWebFolder or PmaWebLang where the registration is carried out.
Macro expression can be used for input (it is evaluated after starting the application). After the preconfiguration is created, the "PmaPanel > Web server > PmaWeb object" configurator will be set to this value. |
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();
var oCreator = Pm.CreateView(null, "/DateTime", "", "target:_blank;dependent:1;size:panel;modal:1;");
oCreator.View.Arguments = dDateTime;
oCreator.View.onClose = OnClose;
oCreator.Open();