Hi Community,
I'm an absolut Powerapps Rookie and I can't find a solution to this issue...
I want to navigate to a specific screen based on the DataCardValue1 in this case.
Sure found out that this doesn't work: Navigate('DataCardValue1.Selected.Value'; ScreenTransition.None)
Solved! Go to Solution.
Hi @Maciboi
If your problem has been solved, you could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!
Thank you for your cooperation!
Best Regards.
You cannot provide a PowreApp control name or any schema (fields/columns) by reference like that. They must be specified.
1) You can either include your screens in your DataCardValue1 items control and reference that.
Ex.
Items: Table({Value:"123", Scrn: someScreenName}, {Value:"234", Scrn: someOtherScreenName})
Then on the OnSelect action of the button:
Navigate(DataCardValue1.Selected.Scrn)
2) Utilize a Switch statement.
Ex.
Navigate(
Switch(DataCardValue1.Selected.Value,
"123", someScreenName,
"234", someOtherScreenName
someDefaultScreen
)
)
I hope this is helpful for you.
@RandyHayes thanks a lot for replying this fast.
1) Where do I include this?
Items: Table({Value:"123", Scrn: someScreenName}, {Value:"234", Scrn: someOtherScreenName})
Where is the item controls? Is it this?
2) I understand the switch function, but I tried this but it gives me an error
Also I tried this:
It always say names are invalid
Ok I was able to make it work with IF!
Tried the same with Switch:
In the end I can live with the IF solution 🙂
Hi @Maciboi
If your problem has been solved, you could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!
Thank you for your cooperation!
Best Regards.
User | Count |
---|---|
256 | |
107 | |
90 | |
51 | |
44 |