cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sajarac
Super User
Super User

Navigating from Different Pages

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

1 ACCEPTED SOLUTION

Accepted Solutions
rampprakash
Super User
Super User

Hello @sajarac,

 

Add below code in App Onstart

 

Set(currentScreen,Blank());

 

rampprakash_0-1632497892597.png

 

Add Icon in Screen A in on select Navigate('Screen C',Fade)

rampprakash_1-1632497917214.png

in Screen A Visible 

Set(currentScreen,"ScreenA");

 

rampprakash_2-1632497936896.png

 

 

Add Icon in Screen B in on select Navigate('Screen C',Fade)

rampprakash_3-1632497952916.png

 

in Screen B Visible 

Set(currentScreen,"ScreenB");

 

rampprakash_4-1632497967502.png

 

 

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))

 

 

rampprakash_5-1632497982563.png

 

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

 

View solution in original post

3 REPLIES 3
rampprakash
Super User
Super User

Hello @sajarac,

 

Add below code in App Onstart

 

Set(currentScreen,Blank());

 

rampprakash_0-1632497892597.png

 

Add Icon in Screen A in on select Navigate('Screen C',Fade)

rampprakash_1-1632497917214.png

in Screen A Visible 

Set(currentScreen,"ScreenA");

 

rampprakash_2-1632497936896.png

 

 

Add Icon in Screen B in on select Navigate('Screen C',Fade)

rampprakash_3-1632497952916.png

 

in Screen B Visible 

Set(currentScreen,"ScreenB");

 

rampprakash_4-1632497967502.png

 

 

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))

 

 

rampprakash_5-1632497982563.png

 

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

 

eka24
Super User
Super User

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.

 

 

 

sajarac
Super User
Super User

Thank you very much both!!

 

🙂

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (2,885)