cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mdcastorena
Helper II
Helper II

Tie a button to a list item

Good afternoon, hoping to be pointed in the right direction here. How can I tie a button to a specific SP list item so when it's pressed, info about that list item is displayed?

 

Thank you in advance,

Morghan

1 ACCEPTED SOLUTION

Accepted Solutions

Got it figured out by following these steps - https://www.youtube.com/watch?v=eBaoOQ58YD8. All good. Thank you!

View solution in original post

4 REPLIES 4
eka24
Community Champion
Community Champion

Can you share more information on where you want to display the list?

------------

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.

Consider Checking My Youtube Channel

Digital
Impactful Individual
Impactful Individual

Will it always be the same list item? If that is the case you can capture the record in variable using LookUp

 

OnSelect of button

Set(varRecord,LookUp(YourSharePointList, ID = YourSharePointItemID))

 

You can then reference the record's columns using varRecord. If you wanted to display the title in a label put this in the text property: varRecord.Title

 

If you want to display all of your SharePoint records you could use a gallery. Put a button in the gallery then in the button's OnSelect property capture the record in a variable.

 

Set(varRecord,ThisItem)

 

You can then reference varRecord which will contain the selected record.

 

Is this what you meant?

 

 

 

Thank you for the quick response @Digital - The more I think about it, I guess I can actually do away with needing the list all together. I have this map image in my PowerApp. I am overlaying transparent buttons so as the user clicks the map image/button, it should display that property's address, phone number, etc. 

 

Here is an image I hope helps -

 

2021-09-17_13-03-37.jpg

Got it figured out by following these steps - https://www.youtube.com/watch?v=eBaoOQ58YD8. All good. Thank you!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,156)