Hello guys,
I have created a power app with user sign up and login page. So, now I wanted to navigate the user to a specific page and I want that page to display user specific data. The page is going to stay constant but it will only have to display data of specific user that logs in. How do I do that??
Did this work for you? If yes, I would like to know the details.
Your request seems too general. Are you done with both the Sign up and the Login?
If you are done with it and you want to filter a Gallery in Power Apps for instance, you could Set a variable as I gave earlier.
Then filter the Gallery items as;
Filter (Datasource, Username=LoggedUser)
This will show only record in relation to that user.
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Hello @eka24 @Drrickryp thank you for the response. I am developing a canvas app basing on a SharePoint list.
So, I have put a sign up page(Screen) together; The sign up information will get stored in a list (Name, Username & Password)
Next screen is Login page (Which will only execute if the info is = to info in the sign up list)
Can we declare each user's username as given in sign up page as a new global variable as they signup??
Is this possible when you are building a canvas app from a share point list??
If yes, how can I declare it?? so that I can use this global variable and filter function in next coming screens to restrict data to user specific.
@Drrickryp is right if your users are all having User account. However if your login is not connected to the ms user account, you could Set a variable to collect the Name entered in the username Textbox.
So on the login button;
Set(LoggedUser,UsernameTxt.Text)
Then in the page you want to display, insert a label and put;
LoggedUser
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Hi @Anonymous
Use Set() to set a global variable when the user logs in. Assuming that there is a User column in the relevant tables, Use Filter() to limit the data shown in galleries and datatables in the rest of the app. I have found User().Email to be a good way to capture the information and can get it in the OnStart property of the app
Set(useremail,User().email)
email tends to be better than FullName because of spaces and case differences in names.
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,081
Most Valuable Professional