VLF-ONE Get Active Profile On Client Side
Posted: Thu Jun 29, 2017 2:57 am
Is there a way to get the user profile for the logged in user on the client side?
In the LOGON IIP, I set the "UserProfileToCheck" to a known user with the proper authorities. I need to get that profile back in another component.
I store that profile in the Persistent_ApplicationString1 so I could go to the server and have it send it back down, but it seems like I should be able to get it from the framework itself on the client.
This post http://vlforum.lansa.com.au/viewtopic.p ... 150&p=1929 seems to show that it can be done, but those ideas always return the user name that was entered, not the UserProfileToCheck.
For example in the Logon IIP I set the UserProfileToCheck to ADMIN_USR
Now when I try to get that profile with one of the following
It returns the user name that was used to log in, NOT ADMIN_USR.
In the LOGON IIP, I set the "UserProfileToCheck" to a known user with the proper authorities. I need to get that profile back in another component.
I store that profile in the Persistent_ApplicationString1 so I could go to the server and have it send it back down, but it seems like I should be able to get it from the framework itself on the client.
This post http://vlforum.lansa.com.au/viewtopic.p ... 150&p=1929 seems to show that it can be done, but those ideas always return the user name that was entered, not the UserProfileToCheck.
For example in the Logon IIP I set the UserProfileToCheck to ADMIN_USR
Code: Select all
mthroutine name(CheckUserCredentials) options(*REDEFINE *RETURNS_MESSAGES)
#UserProfiletoCheck := ADMIN_USR
endroutine
Code: Select all
#STD_STRNG := #avFrameworkManager.avLoggedOnUser
#STD_STRNG := #uSystem.FrameworkLoggedOnVisibleUserProfile
#STD_STRNG := #uSystem.FrameworkPlatformU