Creating a progress bar on a HTTP Service

Hello All,
As the top title suggests, does anyone know the best way of doing this? The HTTP service is simply pulling some XML data and I want to inform the user of how long this is going to take or what % it is currently completed.
I dont have much experience with using progress bars so any help would be much appreciated.
THANKs!

I found this online but It doesnt seem to work;
If your HTTPService has id of httpService you have to first invoke an eventListener of type ProgressEvent.PROGRESS. On the stage or in your Popup you have to make a progressBar with id (for example myProgressBar)
httpService.addEventListener(ProgressEvent.PROGRES, progressFunction);
Than you have define a progressFunction that will accept broadcasted ProgressEvent like so
private function progressFunction(event:ProgressEvent):void{
myProgressBar.mode = 'manual';
myProgressBar.setProgress(event.bytesLoaded, event.bytesTotal);
//you can than do something when content is loaded
if (event.bytesLoaded == event.bytesTotal){
//code for popup removal or removal of progressBar

Similar Messages

  • Create a progress bar DeskBand

    sh to create a progress bar deskband, in order to display a progress bar in windows taskbar. I wish to display the progress bar horizontally and the same width as the taskbar.
    Can someone please tell me how to create a taskbar deskband, in order for me to use it as a reference?
    If you could please give me an example, I would greatly appreciate it.
    Thanks.

    Hi Nando88
    I am not completly sure about if I completely understood your question, however, I found this in the community, and I think it might be usefull for you.
    https://decibel.ni.com/content/groups/ui/blog/2009/12/24/using-windows-7-taskbar-progress-bar-from-l...
    Could you please let us know if this is what you were refering to?
    Thanks!
    WenR

  • How to create a progress bar showing status on timeout of TCP Read function

    Is there any way of creating a progress bar showing the status of a 'TCP Read timeout' time ... ?
    I'm sending a data request to an intranet server via TCP Write, and then using TCP Read with a 2 min. timeout to receive the requested data. During this time i want to show the actual progress of the timeout in a progress bar.
    Can this be done?
    And do i have to implement some kind of multitasking to make it happen?
    TIA

    Soulstorm wrote:
    > Is there any way of creating a progress bar showing the status of a
    > 'TCP Read timeout' time ... ?
    >
    > I'm sending a data request to an intranet server via TCP Write, and
    > then using TCP Read with a 2 min. timeout to receive the requested
    > data. During this time i want to show the actual progress of the
    > timeout in a progress bar.
    > Can this be done?
    > And do i have to implement some kind of multitasking to make it
    > happen?
    It can be done and you need to do some multitasking yes, but that is
    quite easy in LabVIEW. A separate loop or subVI with loop will be
    responsible for the progress bar. Set its scale to 0 and the number of
    seconds of your timeout. In parallel to the TCP Read let this loop or VI
    execute reading the time every few
    seconds and calculating the
    difference to its start time, passing this value to the progress bar
    slider. Have an extra boolean global which aborts the loop and set this
    boolean to FALSE before starting the loop/VI and TCP Read and setting it
    to TRUE on return of the TCP Read.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Is it possible to create a Progress Bar?

    Hi All,
    Is there any way to create a Progress Bar in a Form?
    John

    You can create your own progress bar form using Visual Basic.  Display your progress bar form with the always on top flag set with an API call.
    I've done this and I use it a lot because I have found that there is no other way to indicate to the user that a lengthy process is executing.

  • How can i Create a PROGRESSIVE BAR   while process of a procedure is going

    hi,
    I have a push button in my form that runs the procedure .the process will approx 15 minutes. while processing is started, i want to display PROGRESSIVE BAR
    until process complete and exits automatically after process . please suggest me how to create the same, is it possible..
    please send me solution as soon as possible please
    thanks in advance
    prasanth

    The forms demos contains a progress bar bean which you can use if web deployed.
    Regards
    Grant Ronald
    Forms Product Management

  • How to create/set progress bar for loading flash intro

    Hi,
    I am having a falsh intro for my website.
    But its taking time to download and play the intro when we try to access it.
    I have seen many sites with progress bar indicating the status on the downloading of flash items.
    Can anybody please tell me how should I go about this?

    You can make a simple loader, it's a visual cue so your users wait for a moment.
    Try this, get a GIF from one of these site: http://www.google.com/search?hl=en&client=safari&rls=en-us&q=loading+gif&btnG=Se arch
    download it and name it as loader.gif
    add it to you page, and add the following to the page using HTML Snippet:
    <script type='text/javascript'>
    var timerCount = 0;
    var delayTimer = 5; // change this for the duration to show the loader.gif
    var loaderName = 'loader.gif';
    function stopLoader() {
    _imgs = parent.document.getElementsByTagName('img');
    for (ji = 0; ji< _imgs.length; ji++) {
    if (_imgs[ji].src.indexOf(loaderName) != -1) {
    loaderElement = _imgs[ji];
    break;
    if (timerCount == delayTimer) {
    loaderElement.style.visibility = 'hidden';
    clearInterval(_stopLoader);
    timerCount++;
    parent.iWLog(timerCount);
    _stopLoader = setInterval('stopLoader()', 1000);
    </script>
    BTW, here is an example: http://hdl.50webs.com/Sample/Blank.html

  • Creating a progress bar while querying a report in Visual Studio

    I have created a Visual Studio 2013 program that runs reports from a SQL server.  I want a progress bar to show up in my VS program while it is querying so my user doesn't think that it is frozen while running larger queries.  How can I do this.
     Step by step is better since I am new to programming.
    Gracies 
    Much Love 

    Hi flextera,
    Based on your description, I’m afraid that it is not the correct forum for this issue, since this forum is to discuss:
    Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.
    To make this issue clearly, would you mind letting us know more information about this issue? Which language are you using? Which kind of app are you developing? You said that it is related to the report in SQL Server, is it the SSRS issue or the specific
    windows app like the WinForms app?
    Please share me more information, I will help you find the correct forum for this issues.
    If there's any concern, please feel free to let me know.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Creating a progress bar using BufferReader()

    Hi,
    I was wondering if it was possible to count the number of bytes that BufferReader() has read. I doing that because I need it to calculate progress (to have a progress bar). This is what I'm doing.
    private void createOutputFile() {
            String line;
            String [] temp = new String [21];
            try {
                FileReader fr = new FileReader(new File(openTF.getText()));
                FileWriter fw = new FileWriter(new File(saveTF.getText()));
                BufferedReader br = new BufferedReader(fr);
                BufferedWriter bw = new BufferedWriter(fw);
                while ((line = br.readLine()) != null) {
                    temp = line.split("\\t");              
                    if (temp.length > 18 && temp[18].length() > 0){
                        fw.write(temp[0] + "\t" + temp[18] + "\n");
                bw.close(); fw.close();
                br.close(); fr.close();
            catch (FileNotFoundException fN) {
                fN.printStackTrace();
            catch (IOException e) {
                System.out.println(e);
        }I know that I can do it using BufferedInputStream but due to the fact that I'm parsing each line of the file, I don't think I can do that because the length of each line is different (am I right?)
    Thanks.
    Desmond

    the length of each line is different (am I right?)Probably. Just get the length of the each line your read and keep a running total.

  • HTTP Request Progress Bar

    Hello All,
    Im trying to create a progress bar on a HTTP request that
    loads in some XML data into my flex app. I can see how it's done
    using an Image or an SWF however the HTTP request doesn't emit any
    progress / complete events.
    Does anyone have any ideas of how this can be achieved.
    Example code would be great.
    Thanks
    Craig

    Hey luisi40999954,
    Could you please let me know what version of OS are you working on.
    You might clear your adobe.com cookies and try using a different browser.
    The installation files for downloading Acrobat DC trial version is available at the below mentioned link:
    Download Acrobat products | Standard, Pro | DC, XI, X
    Please try again and let me know if this helps.
    Regards,
    Anubha

  • How to Create Progress Bar in SAP

    Hi!
            I need to know how to create a progress bar in Sap Business One with VB.Net to Show  a Scheduling Status.

    Hi Parag,
    The code you need to create a progress bar is:
    Dim Progress as Integer
    Dim oProgressBar As SAPbouiCOM.ProgressBar
    oProgressBar = oApplication.StatusBar.CreateProgressBar("YOUR_TEXT", oRecordset.RecordCount, True)
    oProgressBar.Text = "YOUR_TEXT"
    and for each record:
    Progress += 1
    oProgressBar.Value = Progress
    When all is finished
    oProgressBar.Stop()
    Regards,
    vanesa

  • Problem in creating progress bar in form6i

    dear all
    how are you?
    i created a progress bar but i face a problem.
    in the when button pressed trigger i write this
    declare
    cursor MY_cur is
    select col1,col2,col3
    from base_table;
    vWIDTH number :=0;
    vSTEP NUMBER := 0;
    begin
    SELECT COUNT(1)
    INTO vROWS
    FROM base_table;
    vSTEP := 300 / vCOUNT;
    show_view('progress_bar_stack');
    for i in MY_cur is
    loop
    insert int my_tab(c1,c2,c3)
    values(i.col1,i.col2,i.col3);
    set_item_property('progree_item',width,width+vSTEP);
    synchronize;
    end loop;
    end;
    I ASK IS THIS A GOOD WAY TO CREATE A PROGRESS BAR OR NOT . AND IS THERE ANOTHE WAY TO CREATE A PROGRESS OTHER THAN THIS.
    PLEASE IF YOU HAVE A WAY , WRITE IT .
    TAREK FATHI
    2005 05 31

    my way of implementig a progress bar is:
    window wn_pbar with canvas cn_pbar and a button bt_pbar. The Button has a width of 1 pixel and max 300.
    now I have a procedure pbar.init (P_<wn-name>, P_<max-value>) which writes a window-header in the wn_pbar and a max-value in a package-variable.
    another function named pbar.next (P_<value> DEFAULT 1) increments an internal variable act-value. This act-value is initially 0 and can increment to max-value. The act-value/max-value is the percentage of the width of the button. e.g. 1200/2000 means 60% -> 60% of width 300 = 180 width for the button.
    another procedure pbar.destroy deletes the variables, closes the window wn_pbar and goes back to the item, where the focus was before the pbar started.
    with this steps you can easily group these objects in a objectgroup and inherit it to all forms you need a pbar. the sourcecode is still in a library pbar.pll which you have to attach.
    it looks like your functionality, but you can use it anywhere you need it.
    try it
    Gerd
    PS: This is a very useful method for forms client/server. In the web you have to check, that the button not refreshes to open.... the more network-roundtrips, the fewer performance...

  • Create progress bar

    Hi. Do you know how to create a progress bar ?
    In my JSP, i'm going to show some numbers and a progress bar telling the user how many % of a job (s)he has done. I'm doing a regular refresh and getting the %-number from a backend-method.
    I'll be very thankful getting some advice.

    This is just one of those posts that is just asking for some sarcastic remarks... I'll pass this time.
    Advice about what? Only post here if you have a problem you can't solve yourself. If you check the other posts, another one about this very same topic has some replies, I suggest checking it out.

  • APEX style progress bar on left

    Hi,
    New to APEX so apologies if this has already been discussed.
    I have created a form that is quite lengthy, so would like to break it down into different steps. Does anyone know how to create a progress bar on the left that shows the different steps, like APEX does?
    Thanks

    Hi,
    If you install demonstrative application to your workspace you can see how it can be done.
    To install demonstrative application:
    Home>Application Builder>Create
    and select Demonstration Application
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/bldapp.htm#sthref751
    In demonstrative application page 11, 12 .. you can see how it can be done
    Br,Jari

  • Progress bar for player?

    Hi All,
    I am developing a player,
    I not able to get how to create a progress bar  which shows download data and the player
    Like YouTube which show the download as well as the player head.
    Thanks in advance.

    if the video is a live stream, it's impossible to do it.
    You can't work out your player position or amount downloaded because the end position and total file size are unknown.
    I'm guessing you may actually mean you want the progress bars to be live and not manually controlled, in which case you could use a timer
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" verticalAlign="top"
        horizontalAlign="center" paddingTop="0" applicationComplete="init()">
        <mx:Script>
            <![CDATA[
              private var j:uint=1;
              private var m:uint=1;
              import flash.utils.Timer;
              import flash.events.TimerEvent;
                private const MS_MASK:String = "000";
                private const TIMER_INTERVAL:int = 1;
                private var baseTimer:int;
                private var t:Timer;
                private function init():void
                    t = new Timer(TIMER_INTERVAL);
                    t.addEventListener(TimerEvent.TIMER, updateTimer);
                    startTimer();
                private function updateTimer(evt:TimerEvent):void {
                    var d:Date = new Date(getTimer() - baseTimer);
                    var ms:String = (MS_MASK + d.milliseconds).substr(-MS_MASK.length);
                    if (int(ms) > 100)
                        //Update & Calculation functions go here//
                        runit2();
                        runit();
                        stopTimer();
                private function startTimer():void {
                    baseTimer = getTimer();
                    t.start();
                private function stopTimer():void {
                    t.stop();
                    startTimer();
              private function runit2():void
                  if(j<=100)
                     bar2.setProgress(j,100);
                     j+=2;
                  if(j>100)
                     j=0;
              private function runit():void
                  if(m<=100)
                     bar.setProgress(m,100);
                     m+=1;
                  if(m>100)
                     m=0;
            ]]>   
        </mx:Script>
        <mx:Panel title="ProgressBar Control" layout="absolute" color="0xffffff" borderAlpha="0.15"
             paddingTop="10" paddingRight="10" paddingBottom="10" paddingLeft="10" horizontalAlign="center" x="307" y="297" height="152" width="409">
            <mx:ProgressBar id="bar" labelPlacement="bottom" themeColor="#EE1122" minimum="0" visible="true" maximum="100"
                 color="0x323232" direction="right" mode="manual" width="100%" x="10" y="74"/>
             <mx:ProgressBar id="bar2" labelPlacement="bottom" themeColor="#0088FF" minimum="0" visible="true" maximum="100"
                 color="0x323232" direction="right" label="" mode="manual" width="100%" x="10" y="74" alpha="0.1"/>  
        </mx:Panel>
    </mx:Application>
    a function you might find useful in doing this would be the PHP filesize function
    http://php.net/manual/en/function.filesize.php
    you could send off a script at the begging on the stream calculating the total filesize, and then compare that against amount downloaded in you AS3, what would be download progress sorted.

  • Want to download Defauld Progress Bar from Oralce Site

    Hi,
    I am trying to download Defauld Progress Bar From Oracle Site, but it is showing message
    alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason." Your browser is completely ignoring the <APPLET> tag!
    Please suggest and how can I use that progress bar on my existing 6i form .
    thanks
    mohan

    then Applet will not work in any case....
    For 6i there is online help available for Progress bar
    To create a progress bar:
    1     In the Layout Editor, click the Text Item tool.  Drag to create a text item of the maximum size of the progress bar.  For a raised style bar, set the Bevel property of the item to raised.
    2     Click the Rectangle tool and create a rectangle slightly larger than the maximum size of the progress bar.  For a flood style bar, set the Bevel property of the rectangle to Lowered.
    3     Add trigger code to set the size of the progress bar as appropriate.  Change the size by programmatically adjusting the Width property.  Depending on your application you might do this within a PL/SQL loop, or in a WHEN-TIMER-EXPIRED trigger.  For example, use the Set_Item_Property built-in:
         DECLARE
       x NUMBER := Set_Item_Property(‘PROGRESS.PLAIN’, WIDTH);
    BEGIN
      if x <  120 then
        Set_Item_Property(‘PROGRESS.PLAIN’, WIDTH, x+5);
      else
        Delete_Timer(‘PROGRESS’);
      end if;
    END;
    Tip: Form Builder does not normally update the display while a trigger is executing.  To update the progress bar while a PL/SQL loop is executing, use the Synchronize built-in.
    To create the spinning wheel animation:
    1     Using a drawing tool such as Microsoft Paint, create an image file containing all of the different pictures, or frames, that you want to show for the animation.  To create a smooth animation, use at least four and preferably six frames. 
    2     In the Layout Editor, display the content canvas where you want the animation to be displayed. 
    3     Click the Stacked Canvas tool in the tool palette.  Click on the content canvas to create and position the stacked canvas.
    4     In the Property Palette, under the Physical node, set the Width and Height of the stacked canvas to the size of the image or larger, and set the Viewport X Position on Canvas and Viewport Y Position on Canvas to show the initial frame.  Under the Viewport node, set the Viewport Width and Viewport Height to the size of each frame. 
    5     In the Layout Editor, display the stacked canvas.  Choose FileImport to import the image file.  The image will appear in the upper left corner of the canvas.
         Tip:  If you have boilerplate images that you use frequently, such as a company logo, add them to your object library by dragging the boilerplate image object from the Canvas node in the Object Navigator and dropping it on the appropriate page of the object library.  To reuse a boilerplate image from an Object Library, simply drag it to the Object Navigator and drop it under the canvas where you want the image to appear.  This is faster and simpler than importing a file.  See the Gallery page in the DEMO20.OLB object library for an example.
    6     Add trigger code to show each frame as appropriate.  Depending on your application you might do this within a PL/SQL loop, or in a WHEN-TIMER-EXPIRED trigger.  Change the frame by programmatically adjusting the Viewport X Position on Canvas and Viewport Y Position on Canvas properties to position the viewport visible on the content canvas over the desired frame. 
    if responses are helpful or correct please mark it
    Baig,
    http://baigsorcl.blogspot.com

Maybe you are looking for

  • Rows limit in Cross Tab

    I receive this message "The numbers of rows or columns exceeds its limit,65535" although it reads more 100,000 records but does not shows Can anybody help please. Regds Basil

  • Photoshop not opening double clicked files anymore?

    Hi all... All of a sudden my copy of Photoshop CS1 has stopped opening files when they are double clicked in the finder or passed any other way. The only way I can get PS to open a file is by opening them from it's File menu! Draging a file to it's d

  • Daisy chain lacie drives?

    hi, how do i daisy chain my lacie ex drives because i dont have many usb ports available at all. vheers Message was edited by: macbookair

  • Query about reentrant in ejb-jar.xml file(in case of entity Bean)

    Hi all friends, I am new to EJB I couldn't understand in ejb-jar.xml file in case Entity Bean[<reentrant>False</reentrant> &<reentrant>true</reentrant>]what is the function of this tag and what is the effect of value true and false of this tag.Can an

  • XML queries (EXISTSNODE, CONTAINS) giving inconsitance results

    Hi, I am querying data from a table that has xmltype datatype and getting inconsistant results with two different approaches. I would like to have the top 500 records for a "REGION". My first query uses CONTAINS with "HASPTH" and the second query use