UserRoles

This function allows the user to access to an application on a menu where the application and menu roles are defined and the application form's Role property is defined.

App.UserRoles can also be used to dynamically update a user's record when and ONLY when the active user has been selected. (An active user is a user that shows up in the RFgen User Management Console.)

You can use this script to add user roles to multiple users. For information on setting up the areas for restricting user access to an application, see To Limit User Access.

Group: Application-Based Extension


Syntax: = App.UserRoles()

sAdmin          (String) is the role name assigned to the application.

Example:

App.UserRole = "Admin"

Version Supported:      RFgen 5.1, 5.2 and newer.