
Good afternoon,
I'll try and paint a picture with as much detail as possible below if it helps. If you want to just jump straight to the question itself, i'll separate this bit so it's easy to see where to skip to.
-------------------------------------
I am currently working on a staff tracker app for management that allows staff members to select if they're working from home, working in the office or self isolating. It was a quick and messy job due to the COVID lockdown, but it's something that was needed to be done asap.
The data is sat on a Sharepoint list, with columns to identify the user by last name as this department (thankfully) has no duplicate surnames.
The core of this application is very similar to a blank powerapp when you connect a list, it has three screens:
scrHome
scrBrowse
scrEdit
scrHome just has a button to take the user to either scrBrowse or the SPOL list if needed.
scrBrowse contains a gallery with the sharepoint list connector, it is filtered so that only the users name will appear (I compared Surname on SPOL against LastName on the Office365 connector to filter the list) although the boss has special permissions to see everyone.
scrEdit simply takes the user to a page with a form containing the selected item, allowing them to update their details
After getting some feedback from my manager, he would like it so that you click the "Update" button on the home page, which is right now just a regular button that navigates you to scrBrowse, to immediately select the user's entry on the gallery and take them straight to the edit page to reduce clicks. I've done some research into this matter and I did see something promising using the First command, but I can't seem to get anything working.
-------------------------------------
I would like to be able to create a regular button that when selected, selects a specific item (namely the user's record) within a gallery and then navigates to another page to edit this content. This button would not sit inside of the gallery itself, it would be a standalone object.
For additional context the current gallery will only display their own name anyway (unless they're the boss) so the First command although not working for me just yet, might work somehow.
If anyone has any insight into this or would know how to achieve this task, I would appreciate the assistance.
Before we get to solving this problem, if we really want to reduce clicks, why not take the user directly from the Home screen to the Edit screen on the click of the Update button? Does the user really need to go through the browse screen?
Let me know if this is needed and there are a couple of ways we can accomplish it.
---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions.
Thanks!
Hardit Bhatia