cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kinghnvn
Post Patron
Post Patron

Refresh or start app again when click on Dashboard screen

Hi all,

 

How can set up refresh or start app again when click on Dashboard screen?

 

Thanks.

2 ACCEPTED SOLUTIONS

Accepted Solutions
AmDev
Super User
Super User

Hi @kinghnvn 

 

You can add this to the 'OnSelect' property of your chosen control, which will restart the app for the user:

 

Launch("https://apps.powerapps.com/your_app_URL", "", LaunchTarget.Replace);
Exit()

 

LaunchTartget.Replace is supposed to replace the current browser tab you are on, but it wasn't working for me, it was just loading the app in a new tab and navigating to that new instance of your app, with the original one still there - so to close the loop, I have added the exit function, which returns the old browser tab back to the Office 365 home page.

 

Hope this helps in some way - Good luck!

View solution in original post

AmDev
Super User
Super User

@kinghnvn - I have discovered why the replace browser tab was not working for me. The code should be changed to the following i.e. replace the "" with {} as follows:

 

Launch("your_app_URL", {}, LaunchTarget.Replace)

 

This also allows you to remove the exit function.

View solution in original post

2 REPLIES 2
AmDev
Super User
Super User

Hi @kinghnvn 

 

You can add this to the 'OnSelect' property of your chosen control, which will restart the app for the user:

 

Launch("https://apps.powerapps.com/your_app_URL", "", LaunchTarget.Replace);
Exit()

 

LaunchTartget.Replace is supposed to replace the current browser tab you are on, but it wasn't working for me, it was just loading the app in a new tab and navigating to that new instance of your app, with the original one still there - so to close the loop, I have added the exit function, which returns the old browser tab back to the Office 365 home page.

 

Hope this helps in some way - Good luck!

AmDev
Super User
Super User

@kinghnvn - I have discovered why the replace browser tab was not working for me. The code should be changed to the following i.e. replace the "" with {} as follows:

 

Launch("your_app_URL", {}, LaunchTarget.Replace)

 

This also allows you to remove the exit function.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,578)