web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Selecting a gallery it...
Power Apps
Unanswered

Selecting a gallery item with a button

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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.

Categories:
I have the same question (0)
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    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

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard