canAccessViewFeature(userName: String; viewName: String; className: String; featureName: String): Integer;
The canAccessViewFeature method of the JadeReportWriterSecurity class controls the visibility of view class features in the JADE Report Writer Designer application.
This method returns the type of access that the user specified in the userName parameter has to the view specified in the viewName parameter for the feature specified in the featureName parameter class of the class specified in the className parameter when the user attempts to access a report over that view class feature.
Because of the extra processing that is required, the report writer calls the canAccessViewFeature method every time it builds a list of class features only when the isViewFeatureAccessSet method returns true.
This method controls visibility of view class features in the:
JADE Report Writer Designer application
Catalog when painting an item on a report
Group properties when selecting a group item
Script form
Profile selection
Sort criteria
By default, users have full access to views over all features in all classes in the JADE Report Writer Designer application. When the return value of this method is checked at the time class features are accessed, class features to which the user does not have the appropriate type of access are not available for selection. If the user has read-only access, class features can be accessed only in read-only mode, and the user cannot change values. For details about the integer values that can be returned by this method, see "JadeReportWriterSecurity Class Constants", earlier in this chapter.