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

Powerapps Navigation from Gallery

Hello, I am very new to powerapps and I am trying to build a simple app to navigate through screens and view images and some information...

 

I have created a gallery that contains suppliers1, supplier2, supplier3, supplier4

and I also created gallery1 that contains supplier1 products list

and gallery2 that contains supplier2 products list

and gallery3 that contains supplier3 products list

and gallery4 that contains supplier4 products list

What I want is that when I click on supplier1 it shall go to gallery1 and when I supplier2, it shall go to gallery2 and so on

Currently, if I click on supplier1 or 2 or 3 or 4, they all go to the same gallery1

How do I manage to navigate to each gallery that is specific for each supplier?

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Powerapps Navigation from Gallery

Hey @Taawon 

 

Do you have all these galleries on same screen or multiple screens?

a) If they are on same screen, you can set the Visible property of the galleries based on item selected in the mail gallery.

I am assuming that the Items property of the main gallery is:

["Supplier1","Supplier2","Supplier3","Supplier4"]

Supplier1 Gallery -> Visible -> If(MainGallery.Selected.Value = "Supplier1",true,false)
Supplier2 Gallery -> Visible -> If(MainGallery.Selected.Value = "Supplier2",true,false)
Supplier3 Gallery -> Visible -> If(MainGallery.Selected.Value = "Supplier3",true,false)
Supplier4 Gallery -> Visible -> If(MainGallery.Selected.Value = "Supplier4",true,false)


b) If the galleries are on different screens, you can set the OnSelect Property of the main gallery as:

If(MainGallery.Selected.Value = "Supplier1", Navigate(Screen_Supplier1),MainGallery.Selected.Value = "Supplier2",Navigate(Screen_Supplier2),MainGallery.Selected.Value = "Supplier3", Navigate(Screen_Supplier3),MainGallery.Selected.Value = "Supplier4",Navigate(Screen_Supplier4))

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

7 REPLIES 7
Dual Super User
Dual Super User

Re: Powerapps Navigation from Gallery

The easiest way to do this is to put the 4 different galleries on different screens. Then navigate to each screen when you click the appropriate entry in the first gallery.  You'll need to duplicate the navigation gallery on each of the screens.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Taawon
Level: Powered On

Re: Powerapps Navigation from Gallery

I have already made four galleries for each supplier, but if i click on supplier2, it also goes to gallery1 not gallery2.

 

as I mentioned I am very new to this, and I am sure I am missing something here I hopes I can find it,, you tube is not very rich with how to navigate between galleries thing.. can you please help me with this?

Dual Super User
Dual Super User

Re: Powerapps Navigation from Gallery

 


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Dual Super User
Dual Super User

Re: Powerapps Navigation from Gallery

Navigation is based on the screen, not on the gallery.  You can't navigate to a gallery,  but you can navigate to a screen where that gallery is visible.  Otherwise you aren't navigating anywhere you are just changing the visibility of the galleries.  Its easier to do navigation. That's why I suggested putting the galleries on separate screens.  If they are on separate screens and its still not working please share some details about how you've setup the gallery you are using for navigation.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
v-siky-msft
Level 10

Re: Powerapps Navigation from Gallery

Hi @Taawon ,

 

As Pstork1 said, navigation is based on screen. You need to create four screens to hold each of the four galleries.

Then apply the following codes to OnSelect property of MainGallery.

 

Switch(MainGallery.Selected.Value, "suppliers1",Navigate(suppliers1Screen),"supplier2",Navigate(suppliers2Screen)),"suppliers3",Navigate(suppliers3Screen),"supplier4",Navigate(suppliers4Screen))

 

Note: MainGallery is the gallery contains four suppliers, If the MainGallery.Selected.Value doesn't work, please try to type a " . " dot after 'MainGallery.Selected' and try any autocomplete suggestion that appears.

Best regards,

Sik

Dual Super User
Dual Super User

Re: Powerapps Navigation from Gallery

Hey @Taawon 

 

Do you have all these galleries on same screen or multiple screens?

a) If they are on same screen, you can set the Visible property of the galleries based on item selected in the mail gallery.

I am assuming that the Items property of the main gallery is:

["Supplier1","Supplier2","Supplier3","Supplier4"]

Supplier1 Gallery -> Visible -> If(MainGallery.Selected.Value = "Supplier1",true,false)
Supplier2 Gallery -> Visible -> If(MainGallery.Selected.Value = "Supplier2",true,false)
Supplier3 Gallery -> Visible -> If(MainGallery.Selected.Value = "Supplier3",true,false)
Supplier4 Gallery -> Visible -> If(MainGallery.Selected.Value = "Supplier4",true,false)


b) If the galleries are on different screens, you can set the OnSelect Property of the main gallery as:

If(MainGallery.Selected.Value = "Supplier1", Navigate(Screen_Supplier1),MainGallery.Selected.Value = "Supplier2",Navigate(Screen_Supplier2),MainGallery.Selected.Value = "Supplier3", Navigate(Screen_Supplier3),MainGallery.Selected.Value = "Supplier4",Navigate(Screen_Supplier4))

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Taawon
Level: Powered On

Re: Powerapps Navigation from Gallery

Many thanks you saved my day.. Finally

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,591)