canAccessView

canAccessView(userName: String;
              viewName: String): Integer;

The canAccessView method of the JadeReportWriterSecurity class returns the type of access that the user specified in the userName parameter has to the view specified in the viewName parameter when the user attempts to access a report over that view.

As the access for the user is checked in the standard common Open dialog for reports over views to which the user has access, only reports over the views to which the user has the appropriate type of access are displayed in the list of available reports in the New Report dialog when building a list of views to report against and in the View Extract dialog when building a list of views to extract.

By default, users have full access to JADE Report Writer reports over all views. When the return value of this method is checked at the time reports are displayed for selection, reports to which the user does not have the appropriate type of access are not listed as available for selection. If the user has read-only access, displayed reports 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.