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?
Solved! Go to Solution.
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
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
User | Count |
---|---|
229 | |
105 | |
93 | |
57 | |
30 |
User | Count |
---|---|
291 | |
119 | |
106 | |
62 | |
57 |