174
Views
2
Comments
Solved
Show Username using GetUsers.List.Current.User.Username
Question
Application Type
Reactive
Service Studio Version
11.13.0 (Build 53353)

Hello, I would like to display the username next to the title of the app. I have created several users under my personal environment.

In the expression of the app name I added the following.

GetEntryEspaceName() + " (" + GetUsers.List.Current.User.Username + ")"

No matter which of the created users I log in with, it always shows the username that was last added to the list. What am I doing wrong? Thank you.

Many greetings
Michael


2018-10-29 08-31-03
João Marques
 
MVP
Solution

Hi Michael,


On your query, you probably forgot to set this filter, to get the name of the logged-in user:



In any case, you probably want to have some logic to save this value in a client variable and display the client variable value, instead of querying the user every single time for the same user name that doesn't change. This strategy is done by default on the UserInfo block automatically generated when you create the module:


Kind Regards,
João

2022-11-16 17-10-37
Ambar mishra
Champion

Hi Michael,

Are you to trying to display the logged in username every time ?



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.