Basic Syntax CrystalClear Syntax Before Reading Records

IsWebUserInRole( x )


Checks if the current web user is a member of the specified role. This function is helpful to suppress or display certain sections or fields for different users.

i-net Clear Reports does not have its own login system, rather it uses the Single Sign-On 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.

Usage:

IsWebUserInRole(string)

Return:

True if the current user is a member of the specified role.

Example:

IsWebUserInRole( "Admins" )	// Returns true if the user currently viewing this report has an "Admins" role

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: