But the event is obsolete and it is better to perform the test of the client's access rights by the "Permissions" page of the appropriate objects.
|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.HostName - (String) Name of the logged-in user in the WWW browser (client). If the user isn't logged on, then the string is empty.
pEvent.HostPwd - (String) Password of the logged-in user in the WWW browser (client). If the user isn't logged on, then the string is empty.
pEvent.ComponentId - (String) Identifier of the Web component from which the page is requested. This text is always converted to lower case.
pEvent.PageAddr - (String) Address of the requested page on the Web component (e.g. "default.htm"). This text is always converted to lower case.
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 PmWebDir.onPageLoad, 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.
pEvent.TypeEnable = -2
pEvent.TypeEnable = -1