Hi there.
I hope someone could point me in the right direction:
Let's say I have 3 different screens
Screen A
Screen B
Screen C
Screen C is a common screen for Screen A and Screen B. I mean I ahve some data in screen A and if you came from Screen A you will see some information. and if you came from screen B you will see a different information.
Now If I am in screen A and would like to navigate to screen C and after click in the back icon I would like to navigate back to my screen A. and same situation with the Screen B.
Any help please?
Thanks
Solved! Go to Solution.
Hello @sajarac,
Add below code in App Onstart
Set(currentScreen,Blank());
Add Icon in Screen A in on select Navigate('Screen C',Fade)
in Screen A Visible
Set(currentScreen,"ScreenA");
Add Icon in Screen B in on select Navigate('Screen C',Fade)
in Screen B Visible
Set(currentScreen,"ScreenB");
In Screen C --> Add an icon and in On select write below code
If(currentScreen="ScreenA",Navigate('Screen A',Fade),Navigate('Screen B',ScreenTransition.Fade))
If you want to perform any complex operation like switch to multiple screens based on condition you can try above code
Else
simply use BACK() Function so that it can naviage easily from the destination screen to Back screen
Please mark as Answer if it is helpful and provide Kudos
Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com
Hello @sajarac,
Add below code in App Onstart
Set(currentScreen,Blank());
Add Icon in Screen A in on select Navigate('Screen C',Fade)
in Screen A Visible
Set(currentScreen,"ScreenA");
Add Icon in Screen B in on select Navigate('Screen C',Fade)
in Screen B Visible
Set(currentScreen,"ScreenB");
In Screen C --> Add an icon and in On select write below code
If(currentScreen="ScreenA",Navigate('Screen A',Fade),Navigate('Screen B',ScreenTransition.Fade))
If you want to perform any complex operation like switch to multiple screens based on condition you can try above code
Else
simply use BACK() Function so that it can naviage easily from the destination screen to Back screen
Please mark as Answer if it is helpful and provide Kudos
Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com
Insert 2 Icons on Screen C with:
Navigate(ScreenA)
Navigate(ScreenB)
Then another Icon in ScreenA with: Back()
Then another Icon in ScreenB with: Back()
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Thank you very much both!!
🙂
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
204 | |
71 | |
51 | |
49 | |
20 |
User | Count |
---|---|
260 | |
121 | |
85 | |
76 | |
72 |