Home » Developer & Programmer » Forms » about displaying time remaining
about displaying time remaining [message #398031] Tue, 14 April 2009 23:41 Go to next message
trupti111
Messages: 29
Registered: August 2008
Location: navi mumbai
Junior Member
I m developing online test system using forms

Whenever a user select a particular test suppose of 10 min.

Then i want to show to user time remaining.

please reply soon n thanks
Re: about displaying time remaining [message #398047 is a reply to message #398031] Wed, 15 April 2009 00:31 Go to previous messageGo to next message
danish_fsd@yahoo.com
Messages: 38
Registered: February 2008
Location: Pakistan
Member
Hi,

You need to create a timer when user select a particular test and can repeat this to one minute or one second.

Then on WHEN_TIMER_EXPIRED trigger at form level you can write following code.

IF :txt_time > 0 THEN
:txt_time := :txt_time - (TO_NUMBER(TO_CHAR(sysdate,'SS')) - TO_NUMBER(TO_CHAR(sysdate,'SS'))-1));
END IF;


First set "txt_item" text item to your maximum time.
Note the above code is for second count down.

Hope it will help you.

Regards

Danish.
Re: about displaying time remaining [message #398084 is a reply to message #398047] Wed, 15 April 2009 03:15 Go to previous messageGo to next message
trupti111
Messages: 29
Registered: August 2008
Location: navi mumbai
Junior Member
hi thanks for reply
but i want to show min and seconds left
How can i do that?
Re: about displaying time remaining [message #398396 is a reply to message #398084] Thu, 16 April 2009 02:47 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Use a Java thingy. You will find examples on the Oracle Forms website.

David
Previous Topic: WebUtil OLE Not Working
Next Topic: Text Item Without Editable
Goto Forum:
  


Current Time: Sat Dec 03 22:04:19 CST 2016

Total time taken to generate the page: 0.12416 seconds