cancel
Showing results for 
Search instead for 
Did you mean: 

How to use ProgressIndicator or how can we achieve Timer

deepnain_kundra
Participant
0 Kudos

Hi,

I have a requirement to have online test i.e. a person gives the test and at the same time timer should run showing the time how much time is left with him ( Timer works in descending order)

Can someone suggest me how I can achieve it.

Meanwhile I tried to use ProgressIndicator UI Element (ProgressIndicator in ascending order), but unable to use it.

int icurrent = 0;
while(icurrent != 100)
{
 try
 {
    Thread.currentThread().sleep(100);
     icurrent = icurrent + 1;
     wdContext.currentContextElement().setCounter(icurrent);
 }
 catch(Exception ex)
 {
 }

Now by using the above code for ProgressIndicator, the ProgressIndicator works but till it reaches to 100% I am not able to do anything else.

Please help me.

Regards,

Deep

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use the timed trigger UI control.

use the delay property to set the delay.

Use the event onaction to decrement the value in the context attribute that is bound to the ProgressIndicator UI Element.

Regards,

Ayyapparaj

deepnain_kundra
Participant
0 Kudos

Thanks Ayyapparaj.

Problem Solved

Answers (0)