how to edit username in user info block

how to edit username in user info block

  

Hi,

I'm creating a mobile application that allows you to create users. When the user signs in, they see the word "username" instead of their own username. This is under the User Info block of the application. How do I change that into the user's username? I've seen the "Get the End-User That is Logged In" article but I can't seem to understand the logic behind it.

If you have any ideas, please reply.

Thanks,

Ralph

Solution

Hi Ralph,

Looking at the picture you attached, I think you used the standard template for mobile. If you open webblock "UserInfo" and select the "Username" expression, you'll see it holds the value "Username". Replace this with something from a query.

See below for some screen grabs:

Add aggregate on system.User and filter on User.id.

Set the expression to User.Name.

That a way to fix it.

Cheers,

Menno

Solution