I have an app with several screens, and I would like navigate to a specific screen based on an URL parameter.
A parameter called "TargetScreen" will provide the screen name exactly as written in the app itself.
URL: https://secretURL?tenantId=AppID&TargetScreen=Screen_Name
My app has about 15 screens, and possible more will be added. This is what I'm using, and it works just fine:
StartSCreen:
Switch(
Param("TargetScreen"),
"GFP",
GFP,
"Nursery",
Nursery,
"FSA",
FSA,
"Exceptions",
Exceptions,
"",
Main,
.
.
.
.
)
In my case the parameter text will always match exactly the screen name. Is there a way to simplify this by just doing something like this?
StartSCreen:
If(!Param("TargetScreen"),Main,Param("TargetScreen"))
I understand that the parameter is a string, but it has to be a way to avoid a potentially very long Switch function.
Thanks for any suggestion, I'm just trying to simplify things a little bit.

Report
All responses (
Answers (