Setting page and layer permissions

 

You may want to control the activities allowed on particular pages and layers. You can use various permission transactions to do this.

To find out what activities are allowed on a particular page:

· Use the GetPagePerms transaction.

The reply value is ORed. The options are: read, modify, delete, print, create, hide, user-defined 1, and user-defined 2.

To change the page permissions:

· Use the SetPagePerms transaction.

The specified page permissions are applied.

The layer permissions work in a similar way.

To find out what activities are allowed on a particular layer:

· Use the GetLayerPerms transaction.

The reply options are: read, modify, delete print, create, hide, static, write, user-defined 1, and user-defined 2. Layers for which "static" is set do not appear in the Layers window.

To change the layer permissions:

· Use the SetLayerPerms transaction.

The specified layer permissions are applied.

See also