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

Launch URL from timer ending or by using select or by screen visible?

I know i have done this before. Automatically open (launch) a URL when user enters a screen or when a timer ends.

But nothing happens now.

 

When user enters screen, set variable to true. That starts an timer. I can see the timer count... in the timer control on the function onTimerEnd i have Launch("https://www.google.se")

 

Nothing happens!

 

But if i manually click the timer, it works.

 

Same thing if i insteade use a button and do Select(button1) and in the button have the Launch code.

 

Same thing if i put the Launch in the screens onVisible function.

 

What is happening?

1 ACCEPTED SOLUTION

Accepted Solutions
Oskarkuus
Super User
Super User

I am doing this:

Oskarkuus_0-1663228231489.png

App OnStart sets variable to false
Screen OnVisible sets variable to true

Oskarkuus_1-1663228275714.png

Timer Start is set to the variable

Oskarkuus_2-1663228317652.png

OnTimerEnd variable is set to false and launch is triggered.

Oskarkuus_3-1663228410485.png


If i click the timer with my mouse, it works.
If i open the app, i can see the timer count, but then nothing happens when the timer ends. if i restart the timer manually by clicking on the timer, it do work. i have tried setting a 1 second timer, 10 second timer 1 minute timer. same problem.

 

I have also tried setting the timer to autostart. same issue

View solution in original post

3 REPLIES 3
abc3
Resolver II
Resolver II

You can open the auto start the timer and OnTimerEnd set the Launch("https://www.google.se") it seen fine for me.

 

Oskarkuus
Super User
Super User

I am doing this:

Oskarkuus_0-1663228231489.png

App OnStart sets variable to false
Screen OnVisible sets variable to true

Oskarkuus_1-1663228275714.png

Timer Start is set to the variable

Oskarkuus_2-1663228317652.png

OnTimerEnd variable is set to false and launch is triggered.

Oskarkuus_3-1663228410485.png


If i click the timer with my mouse, it works.
If i open the app, i can see the timer count, but then nothing happens when the timer ends. if i restart the timer manually by clicking on the timer, it do work. i have tried setting a 1 second timer, 10 second timer 1 minute timer. same problem.

 

I have also tried setting the timer to autostart. same issue

abc3
Resolver II
Resolver II

i try the same code is work but if you want to check something run onstart you will to click the Run OnStart first2022-09-15 16_04_36-Power Apps.png2022-09-15 16_04_48-Power Apps.png2022-09-15 16_05_01-Power Apps.png

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (5,549)