Basic Syntax CrystalClear Syntax Before Reading Records

FireAccessDenied()


Terminates the execution of the current report and fires an access denied message to the client. In some environments it forces the user to login. This depends on the configuration of the web server because i-net Clear Reports does not have its own login system and it uses the Single Sign-On mechanism of the web server.

For testing this function with the i-net Designer, you can set a web username in the tab "Other" of the Designer Options dialog and then check for the user name with IsWebUserInRole. See the example below

Usage:

FireAccessDenied()

Return:

Returns nothing because it terminates the report execution.

Example:

If not IsWebUserInRole( "Admins" ) then 
	FireAccessDenied()

See also:


i-net software strives to provide accurate product documentation. Please give us your feedback using the form below.
NOTE: This form is for documentation feedback only. For technical assistance, please send an email to crystalclear@inetsoftware.de.

This page is: very poor very good
Comment: