Unix Technical Forum

How to mention bar during the task on forms 6i

This is a discussion on How to mention bar during the task on forms 6i within the Oracle Database forums, part of the Database Server Software category; --> Hi, I am using forms 6i. How should I display the bar or dots ........... on forms screen,which represents ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-23-2008, 06:59 AM
DAVID
 
Posts: n/a
Default How to mention bar during the task on forms 6i

Hi,

I am using forms 6i.
How should I display the bar or dots ........... on forms
screen,which represents that the task is in progress or it is going
on.
Could some one suggest what type of item/code, I use in order to
accomplish that.

Thanks

David
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-23-2008, 07:00 AM
Daniel Morgan
 
Posts: n/a
Default Re: How to mention bar during the task on forms 6i

DAVID wrote:

> Hi,
>
> I am using forms 6i.
> How should I display the bar or dots ........... on forms
> screen,which represents that the task is in progress or it is going
> on.
> Could some one suggest what type of item/code, I use in order to
> accomplish that.
>
> Thanks
>
> David


It is far easier to just change the VISIBLE property of a text object.

--
Daniel Morgan
http://www.outreach.washington.edu/e...ad/oad_crs.asp
http://www.outreach.washington.edu/e...oa/aoa_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-23-2008, 07:00 AM
Mark C. Stock
 
Posts: n/a
Default Re: How to mention bar during the task on forms 6i


"Daniel Morgan" <damorgan@x.washington.edu> wrote in message
news:1077035325.399811@yasure...
| DAVID wrote:
|
| > Hi,
| >
| > I am using forms 6i.
| > How should I display the bar or dots ........... on forms
| > screen,which represents that the task is in progress or it is going
| > on.
| > Could some one suggest what type of item/code, I use in order to
| > accomplish that.
| >
| > Thanks
| >
| > David
|
| It is far easier to just change the VISIBLE property of a text object.
|
| --
| Daniel Morgan
| http://www.outreach.washington.edu/e...ad/oad_crs.asp
| http://www.outreach.washington.edu/e...oa/aoa_crs.asp
| damorgan@x.washington.edu
| (replace 'x' with a 'u' to reply)
|

i think the OP's looking for a progress indicator

the CURSOR_STYLE property (see SET_APPLICATION_PROPERTY) will let you
display the 'hourglass' cursor during long operations (that forms is
oblivious to, normally, it should display the hourglasss automatically)

also, check to see if that the CONSOLE_WINDOW property (form level) is set
properly. if you gain control during a long operation, you can write to the
message line (use the message built-in with the NO_ACKNOWLEDGE option) --
you might also look into using a time to update the console message line,
but i'm not sure what limitations that will have during long blocking
operations

-- mcs




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-23-2008, 07:00 AM
Daniel Morgan
 
Posts: n/a
Default Re: How to mention bar during the task on forms 6i

Mark C. Stock wrote:

> i think the OP's looking for a progress indicator


I hope not because an accurate one is not possible. If the action
has a predictable time, however, a timer could be used.

--
Daniel Morgan
http://www.outreach.washington.edu/e...ad/oad_crs.asp
http://www.outreach.washington.edu/e...oa/aoa_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-23-2008, 07:00 AM
Tiago Rocha
 
Posts: n/a
Default Re: How to mention bar during the task on forms 6i

On 16 Feb 2004 21:55:50 -0800, david_nat2000@yahoo.com (DAVID) wrote:

>Hi,
>
>I am using forms 6i.
>How should I display the bar or dots ........... on forms
>screen,which represents that the task is in progress or it is going
>on.
>Could some one suggest what type of item/code, I use in order to
>accomplish that.


<out of lurker mode>

Hi David!

I wrote this little function to achieve the result you want

------------
FUNCTION Progresso( nAtual in Number, nTotal in Number ) RETURN VarChar2 IS

nQtNs Number := 0 ;
nQtPontos Constant Number := 20 ;

BEGIN

if nTotal <> 0 then
nQtNs := ( nAtual * nQtPontos ) / nTotal ;
end if ;

Return RPad( 'n', nQtNs, 'n' ) ;

END;

-------------

Variables are in portuguese (I'm in sunny Brasil):

nAtual is the qt of work done
nTotal is the expected total of work done - > you must have this!
it returns a certain of 'n' , related to the constant "nQtPontos".

You must create a display item and set it's font to "wingdings". "n" is a square block in wingdings
font. The length of display item must be enough to fit 20 'n's, or square blocks. If you want a
larger progress bar, increace the length of the display item and the "nQtPontos" constant.


To test the function, create a item named "test" under "test" block and put this code under a
"when-button-pressed" trigger.

Begin

for n in 1..100 loop

:test.test := progresso( n, 100 ) ;
-- you might want to throw a "synchronize" here, not sure. test it.

for 1 in 1..10000 loop --just wait a few instants to make the progress go slower
null ;
end loop ;

end loop ;

end ;

feel free to email me if you have any questions

<back to lurker mode>

>Thanks
>
>David


--
Tiago Rocha
Recife - Brasil
www.diariodastrilhas.cjb.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-23-2008, 07:01 AM
Mark C. Stock
 
Posts: n/a
Default Re: How to mention bar during the task on forms 6i


"Daniel Morgan" <damorgan@x.washington.edu> wrote in message
news:1077040905.936697@yasure...
| Mark C. Stock wrote:
|
| > i think the OP's looking for a progress indicator
|
| I hope not because an accurate one is not possible. If the action
| has a predictable time, however, a timer could be used.
|
| --
| Daniel Morgan
| http://www.outreach.washington.edu/e...ad/oad_crs.asp
| http://www.outreach.washington.edu/e...oa/aoa_crs.asp
| damorgan@x.washington.edu
| (replace 'x' with a 'u' to reply)
|


i was thinking timer that expires at the interval in which the 'progress
meter' should be refreshed -- the time logic would have to be kicked off
(initialized) prior to the long-running tasks, then turned off after the
task completes; each timer expiration during the task would update the
'meter' and reset the timer (which as i recall is an attribute of the timer)

-- mcs


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-23-2008, 07:02 AM
Connor McDonald
 
Posts: n/a
Default Re: How to mention bar during the task on forms 6i

DAVID wrote:
>
> Hi,
>
> I am using forms 6i.
> How should I display the bar or dots ........... on forms
> screen,which represents that the task is in progress or it is going
> on.
> Could some one suggest what type of item/code, I use in order to
> accomplish that.
>
> Thanks
>
> David


Assuming you have control over the form during the long task you could
create an text item say 5cm long in white, and overlay with a blue one
which grows from 0cm to 5cm.

Problem is, then you've got 'synchronize' commands to keep it up to
date...not so good on a wan etc etc

hth
connor
--
-------------------------------
Connor McDonald
http://www.oracledba.co.uk
Co-Author: "Mastering Oracle PL/SQL - Practical Solutions"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:08 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com