on 03-04-2008 8:23 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.