canAccessReport

canAccessReport(userName:   String;
                reportName: String): Integer;

The canAccessReport method of the JadeReportWriterSecurity class returns the type of access that the user specified in the userName parameter has to the report specified in the reportName parameter when the user attempts to access that report. As the access for the user is checked in the standard common Open dialog for reports, only reports to which the user has the appropriate type of access are displayed in the list of available reports.

By default, users have full access to JADE Report Writer reports. 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.