Login page

Hello, I am learning to build an app in Mendix Studio.  I was wondering how the user name can be displayed in subsequent pages of the app after a user logs in to the app with username and password. Can anyone help me with this? Thank you.
1 answers

Hi Akshayaa,

  You can achieve this by using a Data View with a Microflow data source. This Data View should be of the Entity ‘Account.’ The Microflow should retrieve the Current Account and use that as the return object. This Microflow should have one action: a Retrieve action that gets the First Account with the XPath Constraint: [id = $currentUser].

  Now you have a Data View with the current Account inside. You can use a text widget to show the Name of the user. If you select render as: Control instead of Input it will look a little better.

  Hope this helps,