cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sd_sport
Frequent Visitor

Create Navigation Button to Specific Screen within a Gallery

Hi 

I am attempting to create an app that is probably quite advanced for my PowerApps expertise... so any help is appreciated!

 

I am creating 2 screens. 

 

First screen is the landing page in which I the user selects their Name from a dropdown box.

Idea is that once they hit "Submit" - it would navigate to their specific folder. 

 

The second screen is an interactive Document Library off Sharepoint, which I have used the below for OnSelect

If(ThisItem.IsFolder,Set(varCurrentPath,ThisItem.'Folder path'&ThisItem.Name&"/")

 

Is there a way for the user to automatically go to their selected name folder?

 

Thanks so much!

 

 

 

1 REPLY 1
v-yujincui-msft
Community Support
Community Support

Hi @sd_sport ,

 

Maybe you do not need the Drop Down Control.

The User function returns a record of information about the current user:

vyujincuimsft_0-1655448217784.png

If you want users to be able to see their folders, maybe you could try as follows:

 

1. Here is my Document Library.

vyujincuimsft_1-1655448455653.png

2. Here is my App.

Gallery1->Items property:

Filter(Documents,'Folder path'="Shared Documents/StudentDL/"&User().FullName&"/")

Gallery1->Title1(Label Control)->Text property:

ThisItem.'File name with extension'

Gallery1->Subtitle1(Label Control)->Text property:

ThisItem.'Folder path'

Gallery2->Items property:

Filter(Documents,'Folder path'="Shared Documents/StudentDL/"&User().FullName&"/"&Gallery1.Selected.Name&"/")

vyujincuimsft_2-1655449032734.png

In addition, here is a link that might help you:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Is-there-any-way-to-create-subfolder-in-Shar...

 

 

Best Regards,
Charlie Choi

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 (5,061)