onPageLoad - event of the PmaWebDir object

The event is triggered before loading the (pEvent.FilePath) file for the possible change of keywords (i.e. the change of HTML/XML document sent). It is also possible to disable file sending to the client.
pMe(Object) Reference to the PmaWebDir object where the event rises.
pEvent(Object) Reference to object describing detailed information about the specific event.
pEvent.User - (Object) The PmUser object that represents authorized user, who called the request for this page.
pEvent.FilePath - (String) Relative path to the file that is requested from the Web browser.
pEvent.TypeEnable - (Long) It enables to set the type of sending the page to the client. The designer can (according to the user setting, password or the computer address) disable the operation. Setting this parameter is recommended only for special cases. Common security setting is better to be done by standard means of the permissions: WebRead. See also PmaWeb.onNewRequest, PmaObject-Cfg.Methods.
1 (default) - enabling operation.
-1 - required log-on of the user (if the user hasn't been set) or disabling the user (if the user has been set but the name and password are wrong).
-2 - disabling operation for the client unconditionally.
The event is triggered before loading the requested file. After loading file and changing by keywords, the onPageModify event is triggered.
Access to keywords is done by the Vars method.
Event replaces the XXtime keyword by request current time. If the word "_(XXtime)_" is contained in the document, then it will be replaced by the value of XXtime keyword (i.e. the current time) upon reading.
JavaScriptVBScriptSelect and copy to clipboard

pMe.Vars("XXtime").Value = Pm.Time;
PROMOTIC 9.0.16 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