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

DropDown based navigation

I have a SQL table containing a list of form names with a second column mapping to the Screen Name in PowerApps as they appear, and this populates the Items property of a dropdown containing the form names which is filtered from other Cascading dropdowns to filter the options for different forms depending on whether the user has selected month/Year/Week etc. in a preceding dropdown

 

However, I can't seem to Navigate to a new screen based on the selection the user has made in the dropdown and then looking up the corresponding Screen Name of their selection. It seems to reject any Navigation containing a variable. 

 

All the advice I've read is that I should use a table for the dropdown, or a switch statement on the Navigate, but I have around 50-75 possible entries, and because it's filtered based on other dropdowns, so is this functionality supported yet? 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @robinthakur :

Do you want to use the ‘Screen Name’ value of an item in the SQL table as a parameter of Navigate() function to dynamically navigate to a Screen?

If so,I'm afraid it can not be achieved. Because screen is actually a control, it can only be called by hard-coding. So, I think using Switch is the best way I can think of.The code should be:

Switch(
 Lookup(YourSQLTabel,XXXXXXX).'Screen Name',
 "Screen1",
 Navigate(Screen1),
 "Screen2", 
 Navigate(Screen2)
……
)

Best Regards,

Bof

View solution in original post

1 REPLY 1
Community Support
Community Support

Hi @robinthakur :

Do you want to use the ‘Screen Name’ value of an item in the SQL table as a parameter of Navigate() function to dynamically navigate to a Screen?

If so,I'm afraid it can not be achieved. Because screen is actually a control, it can only be called by hard-coding. So, I think using Switch is the best way I can think of.The code should be:

Switch(
 Lookup(YourSQLTabel,XXXXXXX).'Screen Name',
 "Screen1",
 Navigate(Screen1),
 "Screen2", 
 Navigate(Screen2)
……
)

Best Regards,

Bof

View solution in original post

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Kudoed Authors
Users online (68,337)