How to create a timer

How to create a timer

  

I'm planning to create a fitness app, that will be able to start a timer for each exercise at the click of a button. How do you create a button that is able to start the timer countdown upon being clicked?

Hello Jonathan,

Did you already finished the Mobile Online Training (or a live one)?
https://www.outsystems.com/learn/paths/1/becoming-a-mobile-developer/

If so, what exactly did you tried? Are you talking about the Timer countdown from the clock app installed in the device (each device can have a different one, it is an app)? Are you talking about your own timer countdown?

Cheers.

Hello Jonathan,

If I understand your requirement correctly there is a component available here

https://www.outsystems.com/forge/193/

Hope it helps!

I doubt that helps Junaid, as he's probably talking about a mobile app, and that component is a web component.

Eduardo Jauch wrote:

Hello Jonathan,

Did you already finished the Mobile Online Training (or a live one)?
https://www.outsystems.com/learn/paths/1/becoming-a-mobile-developer/

If so, what exactly did you tried? Are you talking about the Timer countdown from the clock app installed in the device (each device can have a different one, it is an app)? Are you talking about your own timer countdown?

Cheers.

Thanks Eduardo, I've finished the first course on developing mobile system apps, but it didn't really cover much on timers. I'm referring to my own timer countdown, that will countdown from a set value for each particular exercise, after a button is clicked. So I'm not sure if I can use the 'timers' from the processes tab to help me or if I have to design my own javascript to work that out


Solution

Hello Jonathan

Indeed, the “timers“ from the process tab are not what you want. They do not run in the same session and only one can run at a time.

But maybe this component may be useful?

https://www.outsystems.com/forge/component/3243/countdown-mobile/

You may also adapt it to your needs, or try to find something else in Forge.

As a last resort, you can implement something yourself.

Hope this helps.

Cheers

Solution

Eduardo Jauch wrote:

Hello Jonathan

Indeed, the “timers“ from the process tab are not what you want. They do not run in the same session and only one can run at a time.

But maybe this component may be useful?

https://www.outsystems.com/forge/component/3243/countdown-mobile/

You may also adapt it to your needs, or try to find something else in Forge.

As a last resort, you can implement something yourself.

Hope this helps.

Cheers

Thanks a lot Eduardo, will try this out!


Hello Jonathan


if any answer is the response usefull to solve your must mark it in order can help other member of the comunity with the some questions.


Regards