Home » Developer & Programmer » Forms » How to use a Progress bar object in Oracle Form
How to use a Progress bar object in Oracle Form [message #80353] Fri, 13 September 2002 00:50 Go to next message
LALA
Messages: 18
Registered: August 2002
Junior Member
Hi,
Theres an object in visual basic called progress bar, this is use to indicate the status of your processing program.
Is Oracle form have this feature, if there is, how can i use in my form or program
Re: How to use a Progress bar object in Oracle Form [message #80419 is a reply to message #80353] Wed, 18 September 2002 12:12 Go to previous messageGo to next message
Daniel R
Messages: 8
Registered: September 2002
Junior Member
Hi,make a progress bar is very simple, just do the next:
1) create a display_item and give it a static length
that you wish.
2) In the procedure or function where you execute the
main proces that you want the users now that are
running, declare 3 variables as follows:
x number := 225; /* Size of the bar */
z number; /* Size of the step */
c number; /* Counter */

c := 0;
The variable "z" recievs the result of a
SELECT COUNT(*) into z from xxx where xxx; as
follows:

z := x/c;
x := 0;
3) Initialize the bar:

SET_ITEM_PROPERTY('STDTOOLBAR.PROGRESS2',WIDTH,x);
SET_ITEM_PROPERTY('STDTOOLBAR.PROGRESS2' ,VISIBLE,PROPERTY_TRUE);
synchronize;

4) Inside a loop or something put the following line:
The loop could be the main loop or your proces.
x := x + z;

5) Before the loop ends put the following lines:

SET_ITEM_PROPERTY('STDTOOLBAR.PROGRESS2',WIDTH,x);
synchronize;

6) After loop ends write this line:

:STDTOOLBAR.PROGRESS2 := '100%';
synchronize;
set_application_property(cursor_style,'Default');
SET_ITEM_PROPERTY('STDTOOLBAR.PROGRESS2' ,VISIBLE,PROPERTY_FALSE);

7) Separate of this in a WHEN-NEW-FORM-INSTANCE
Trigger put the next line:

SET_ITEM_PROPERTY('STDTOOLBAR.PROGRESS' ,VISIBLE,PROPERTY_FALSE);

8) In a WHEN-BUTTON-PRESSED Trigger put this line:

SET_ITEM_PROPERTY('STDTOOLBAR.PROGRESS' ,VISIBLE,PROPERTY_TRUE);

This procedure works i'm actually using in my forms and it works, just need to change a little things related your aplication. I hope this help, by.
Daniel
Re: How to use a Progress bar object in Oracle Form [message #80421 is a reply to message #80419] Wed, 18 September 2002 15:34 Go to previous messageGo to next message
LALA
Messages: 18
Registered: August 2002
Junior Member
thanks daniel I'll try this..inform you if this will success
Re: How to use a Progress bar object in Oracle Form [message #87387 is a reply to message #80419] Fri, 24 December 2004 09:47 Go to previous message
Matloob Ali
Messages: 19
Registered: December 2004
Junior Member
hi can u plz do mail me the exp code so that i study it bec i m new to it i try it but get stucked
Previous Topic: Replyyyyy sooon
Next Topic: Difference between Oracle 7 and Oralce 8
Goto Forum:
  


Current Time: Thu Sep 19 13:49:48 CDT 2024