OnChangeRights - cWebMenuItem

Called whenever rights are changed in cWebSessionManager object

Type: Event

Parameters: None

Syntax
Procedure OnChangeRights 

Description

Called whenever rights are changed in cWebSessionManager object.

OnChangeRights is a stub event that can be used by developers to enable, disable and hide menus and other parts of your application as needed. Usually, you will WebSet pbEnabled to handle enabling objects and WebSet pbRender to hide objects. In some cases, you might WebSet pbVisible.

If you wish to hide the menu item instead of disabling it, you can set the menu item's pbHideViewWhenNoAccess property to True. This causes it to change pbRender instead of pbEnabled. This makes the handling of view menu items mostly automatic.