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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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) |
| |||
| "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 |
| |||
| 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) |
| |||
| 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 |
| |||
| "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 |
| ||||
| 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" |