How to use Progress bar to track time

Hi guys,

Is it possible to use a progress bar to track time? giving it a value of start date time to end date time as the range and using current time to show on a progress bar how close it is to end time?



Kind regards 

Imraan 

Hi,

Yes you can. You need to prepare the data, calculate the percentage value and in the "Percentage" field you put the result. But remember, the result of that is percentage, not "days left or something like that. You can play to with the "Color" field (if percentage < 50, green,if percentage >=50 and percentage <75,orange.......).


Hope this can help you.

Regards,

Ricardo

Imraan Ismail wrote:

Hi guys,

Is it possible to use a progress bar to track time? giving it a value of start date time to end date time as the range and using current time to show on a progress bar how close it is to end time?



Kind regards 

Imraan 

you can use currentdatetime to compare with your range and calculate the percentage, making your progress bar trackk time and then use autorefresh/autoreload component to refresh the progress bar automatically: 

https://www.outsystems.com/forge/component-overview/2134/auto-refresh-utils

or through this:

https://www.outsystems.com/forums/discussion/45073/how-to-reload-a-screenaction-every-30-seconds-with-javascript/

Best Regards,

Nuno Pereira