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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

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

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 (2,962)