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

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
Super User
Super User

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
Skilled Sharer
Skilled Sharer

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!

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,580)