Basic Syntax CrystalClear Syntax Before Reading Records

WebUserName()


Returns the username of the web user currently viewing this report. If the current user is not logged on in the web server then it returns an empty string. The web username is different than the name returned by the function UserName(number).

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:

WebUserName()

Return:

The current web username. For an anonymous user, an empty string will be returned.

Example:

WebUserName()	// Returns the current web username
If WebUserName() = "" 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: