cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MS-Santi
Microsoft
Microsoft

Data-driven navigation in Canvas App

I would like to use a gallery for navigation, keeping the items in the gallery stored in a database.

 

I created a table for an item, the item description, and a screen to navigate to, when the navigation arrow is clicked.

I can bind the gallery to the table no problem, showing the item and its description. But I need to convert the string that comes from the database representing the screen name to a Screen object with that name. Is there a way to get a reference to a screen by name so I can pass to the Navigate function? Currently, using the name of the screen does not work. The Navigate function expects a Screen object.

 

Any pointers?

 

Thanks!

2 REPLIES 2
Sachinbansal
Microsoft
Microsoft

Hi @MS-Santi

 

Currently there is no way to convert string into Screen object. One way would be to create Collection when your app starts (OnVisible property) which will hold information for item, item description and screen object to navigate to. Refer below link for more details:

https://techenthusiast.in/2018/05/28/powerapps-display-static-menu-using-gallery-control/

 

Regards

Sachin Bansal

https://sachinbansal.blog

@Sachinbansal, that's a well written blog with screenshots and code that can be copy+pasted.

 

Thank you for sharing 👍

 

Mr. Dang

Microsoft Employee
@8bitclassroom

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.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

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,719)