onPageLoad - event of object PmWebDir

The event fires 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 PROMOTIC object where the event rises.
pEvent(Object) A referrence to object describing detailed information about the specific event.
pEvent.User - (Object) The User 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 PmWeb.onNewRequest, PmObject-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 fires before loading the requested file. After loading file and changing by keywords, the onPageModify event is fired.

Access to keywords is done by Vars property.

Event replaces the XXtime keyword by request current time (by VBScript function Now). 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.
VBScriptSelect and copy to clipboard

pMe.Vars("XXtime") = Now()
PROMOTIC 8.3.30 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