UserName
This function sets and returns the active username even if the user is not managed by RFgen. For example, if SSO, Adm or WebServices was used to log in the user, if the return package provides the username, then this property will get the information from the package and set it up in the Admin Console (RFgen Mobile Enterrpise Dashboard) so the active username can display in the Dashboard. If no user record exists, this property will also create a new user record for the active user id specified via App.User.
Group: Application-Based Extension
Syntax: App.UserName ( )
Example:
'This example was based on the factory-provided RFLogin but the real intent of ApplUserName is for SSO logins.
Private Sub Button2_Click()
On Error Resume Next
Dim sWhoIsUser As String
sWhoIsUser = App.UserName
TextBox2.Text = sWhoIsUser
End Sub
Versions Supported: RFgen 5.2.4.2 and newer.