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

Gallery to show Document library folders - with second gallery showing documents in first gallery selected folder

Some help please.

 

I want screen with 2 galleries - first gallery should show a document library but only the folders in it.

The second gallery would then show the documents names of files inside the folder which was selected in the first gallery.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Gallery to show Document library folders - with second gallery showing documents in first gallery selected folder

Hi @JC75 ,

Do you want to display SP Library folders within the first Gallery, and display corresponding documents within the second Gallery based on the selected folder in first Gallery?

 

I have made a test on my side, please take a try with the following workaround:1.JPG

 

2.JPG

Within the first screen of my app, add a two Gallery controls. Set the Items property of the first Gallery (Gallery1) to following:

Filter(MyLibrary1, IsFolder=true)   /* <-- MyLibrary1 represents my SP Library Name */

On your side, you should type:

Filter(YourSPLibrary, IsFolder=true)

Add a Label within the Gallery, set the Text property to following:

ThisItem.Name

 

Set the Items property of the second Gallery to following:

Filter(MyLibrary1, Gallery1.Selected.Name in 'Folder path')

On your side, you should type:

Filter(YourSPLibrary, Gallery1.Selected.Name in 'Folder path')

Add a Label control within this Gallery, set the Text property to following:

ThisItem.'File name with extension'

Please check the following GIF screenshot for more details:Test.gif

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 REPLY 1
Community Support Team
Community Support Team

Re: Gallery to show Document library folders - with second gallery showing documents in first gallery selected folder

Hi @JC75 ,

Do you want to display SP Library folders within the first Gallery, and display corresponding documents within the second Gallery based on the selected folder in first Gallery?

 

I have made a test on my side, please take a try with the following workaround:1.JPG

 

2.JPG

Within the first screen of my app, add a two Gallery controls. Set the Items property of the first Gallery (Gallery1) to following:

Filter(MyLibrary1, IsFolder=true)   /* <-- MyLibrary1 represents my SP Library Name */

On your side, you should type:

Filter(YourSPLibrary, IsFolder=true)

Add a Label within the Gallery, set the Text property to following:

ThisItem.Name

 

Set the Items property of the second Gallery to following:

Filter(MyLibrary1, Gallery1.Selected.Name in 'Folder path')

On your side, you should type:

Filter(YourSPLibrary, Gallery1.Selected.Name in 'Folder path')

Add a Label control within this Gallery, set the Text property to following:

ThisItem.'File name with extension'

Please check the following GIF screenshot for more details:Test.gif

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 214 members 4,790 guests
Please welcome our newest community members: