cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Alan78
Level: Powered On

How to showing data in 2 different Galleries from different SharePoint Lists?

Hi,

 

I am hoping someone can help me solve an issue I am having when trying to relate 2 different Gallery Controls to each other.

 

The idea is that I have 2 Screens on a mobile App that both have Gallery Controls.

 

When you select an item on Screen 1 in Gallery 1 you navigate to Screen 2 and see all the items in Gallery 2 that relate to the item you selected on Screen 1. This would be straight forward if all my data was in the same Sharepoint list but it's not.

 

I currently 1 SharePoint List and 1 SharePoint Document Library.

 

Screen1/Gallery1 shows data from the SharePoint List and has a PrimaryKeyID

Screen2/Gallery2 should show all items related to the item in Screen1 within a SharePoint Document Library which contains a ForeignKeyID.

 

I have tried creating a Lookup on the Gallery2 Item propery but I just can't get it to work.

How do I create a function to do this in PowerApps?

 

This was my poor effort: 😞

LookUp(SharePointDocLib, varPropID=BrowseGallery1.Selected.PropertyID);

 

Hope someone can help.

Thanks...

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Level 8

Re: How to showing data in 2 different Galleries from different SharePoint Lists?

Hi @Alan78
Not a poor effort - you were almost there - the Items property of your gallery (I am assuming all your other control and field names are valid)

Filter(
   SharePointDocLib, 
   varPropID=BrowseGallery1.Selected.PropertyID
)

 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up

View solution in original post

1 REPLY 1
WarrenBelz
Level 8

Re: How to showing data in 2 different Galleries from different SharePoint Lists?

Hi @Alan78
Not a poor effort - you were almost there - the Items property of your gallery (I am assuming all your other control and field names are valid)

Filter(
   SharePointDocLib, 
   varPropID=BrowseGallery1.Selected.PropertyID
)

 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up

View solution in original post

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,294)