472,352 Members | 1,670 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,352 software developers and data experts.

how to create running clock in oracle forms 6i

pls. send the proper step by step coding.
Feb 8 '08 #1
4 16307
in new_form_instance on form level
Expand|Select|Wrap|Line Numbers
  1.  
  2. DECLARE 
  3. CurrTime TIMER; 
  4. OneSec CONSTANT NUMBER := 1000; 
  5. BEGIN 
  6. CurrTime := CREATE_TIMER('CURRTIME',OneSec,REPEAT); 
  7. END; 
  8.  
  9.  
  10. in when_timer_expired  on form level
  11.  
  12. DECLARE 
  13. ExpTimer VARCHAR2(40) := Get_Application_Property(TIMER_NAME); 
  14. vTime Varchar2(30) := :SYSTEM.CURRENT_DATETIME; 
  15. BEGIN 
  16.  
  17. IF ExpTimer = 'CURRTIME' THEN 
  18.  
  19. :yourblockname.clock := SUBSTR(vTime, instr(vTime,' ')+1); 
  20.  
  21. END IF; 
  22. END; 
  23.  


hope it will be work

ALI
Feb 27 '08 #2
in new_form_instance on form level

DECLARE
CurrTime TIMER;
OneSec CONSTANT NUMBER := 1000;
BEGIN
CurrTime := CREATE_TIMER('CURRTIME',OneSec,REPEAT);
END;


in when_timer_expired on form level

DECLARE
ExpTimer VARCHAR2(40) := Get_Application_Property(TIMER_NAME);
vTime Varchar2(30) := :SYSTEM.CURRENT_DATETIME;
BEGIN

IF ExpTimer = 'CURRTIME' THEN

:yourblockname.clock := SUBSTR(vTime, instr(vTime,' ')+1);

END IF;
END;



hope it will be work

ALI
Thank you.............................
Feb 27 '08 #3
amitpatel66
2,367 Expert 2GB
Duplicate post by smartali4u is deleted
Feb 29 '08 #4
:yourblockname.clock := SUBSTR(vTime, instr(vTime,' ')+1);

giving an error if I put :yourblock.fieldname
then it works properly
May 28 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Kaix | last post by:
Hello, is there a possibility to control oracle forms form a external application. I like to push a value in a text field in a oracle forms app...
1
by: Chris | last post by:
Our company developed the last couple of years a development tool: using this tool we configure and program (using SQL, and Java-Script) very, very...
2
by: Thomas Kindermann | last post by:
Hello everyone, I'm an oracle database adminstrator and I search some information about possibilities to create easy forms for data input (for...
0
by: mabuarja | last post by:
Dears, I am using Oracle Forms 6i, and I want to know if a certain process is running on windows or not, would you please guys help in this issue....
0
by: anuj13singhal | last post by:
Hi, I am trying to open a word document on the client machine. the document is present on the oracle application server (on windows). For that...
0
by: zellipa | last post by:
I am trying to imbed crystal in oracle. I got the following steps from the web. when i try to run the created from , iget the error frm-41344. ...
4
by: vandanasridhar | last post by:
Hi, its Vandana. I m a begginer of VB, Trying to create a form Having three command buttons Add, Modify, Exit. I made coding & it is running well,...
1
by: sujan | last post by:
how can i create a tool bar for a MDI window application in oracle forms 9i and must show the toolbar when i navigate other form/child form in oracle...
1
by: A James | last post by:
I want to add it dynamically.and I dont want menu items enable/disable or visible /hide . I want to create menu items dynamically. Is it possible in...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.