Progress Bar On Page Process

Hello
I have a page process in APEX that takes a while to finish. When I click a button, I want a progress loading widget to appear.
There is a lot of processing that takes place on this page; however, I only want the progress bar to show when a particular button is pressed for one particular process. I am having trouble getting the progress bar and the process to fire at the same time.
Process name: P3_REFRESH_AS_TABLE
/* calls a pl/sql procedure*/
BEGIN
PC_ST_PR_POPULATE_ATH_SCHED;
END;Button Name: P3_REFRESH_TABLE
I have the Ext JS Library 2.2.1 uploaded to the server.
This is the progress bar code I am trying to use:
//==== Progress bar 4 ====
var pbar4 = new Ext.ProgressBar({
text:'Waiting on you...',
id:'pbar4',
textEl:'p4text',
cls:'custom',
renderTo:'p4'
var btn4 = Ext.get('btn4');
btn4.on('click', function(){
Runner.run(pbar4, btn4, 19, function(){
pbar4.updateText('All finished!');
});This is the CSS code:
.status {
color:#555;
.x-progress-wrap.left-align .x-progress-text {
text-align:left;
.x-progress-wrap.custom {
height:17px;
border:1px solid #686868;
overflow:hidden;
padding:0 2px;
.ext-ie .x-progress-wrap.custom {
height:19px;
.custom .x-progress-inner {
height:17px;
background: #fff;
.custom .x-progress-bar {
height:15px;
background:transparent url(images/custom-bar.gif) repeat-x 0 0;
border-top:1px solid #BEBEBE;
border-bottom:1px solid #EFEFEF;
border-right:0;
}Any help on this is appreciated
Regards,
Kelly

Thank you Luis and Chris for your response.
I have been able to successfully use Carl's logic only when the page process is not set to go off when the button associated with the processing bar is clicked. However, there are a few buttons on the page so each time the page gets submitted the page process fires off if it is not associated to a button. Is there a condition I can use that will prevent the process from firing until the button associated to the processing bar is clicked?
Regards,
Kelly

Similar Messages

  • Browser progress bar still in processing  mode after loading the page

    Hi all,
    In my project ,I am facing one problem.
    After completion of loading page the IE browser progress bar is still showing that loading is not yet done. That means progress bar is in still processing mode.
    Can any one please tell me what is the reason behind it.
    Sujan

    Are you creating the pages dynamically with JavaScript? If you do a document.open() and then do document.write()s but forget to do a document.close(), the loading animation will continue to display.

  • Progress Bar before page loads......

    Hello -
    I'm able to make progress bars for loading images on the
    screen, but I'm having a hard time figuring out how to make one
    appear before the entire page loads. Do use the Loader component as
    the entire page and have my flash file load into it? I'm pretty
    sure there is an easier way by using actionscript, but my coding
    skills are average........
    Any help or suggestions on this would be greatly appreciated.
    I did do a search on this subject and found a few hints, but not
    everything.
    Thanks again.

    I tried this coding and for some reason I didn't see the
    progress bar before the page loaded. I'm assuming it has something
    to do with the "visible=0" line. I messed around with that, and
    still had no luck. See if I overlooked a small detail. Thanks
    Kglad.
    That url (in the code) will work if you want to try it.
    loadMovieNum("
    http://www.trance-state.com/equipment.swf",2);
    preloadI=setInterval(preloadF,100);
    function preloadF(){
    bl=_level2.getBytesLoaded();
    bt=_level2.getBytesTotal();
    if(bl==bt&&bl>0){
    clearInterval(preloadI);
    _level0._visible=0;
    } else {
    // put code here to update your progress bar and anything
    else you want using bl and bt
    }

  • How to show progress bar in java???

    Hey guys!!! can any one tell me how to show the progress bar when a processing is going on???Is it done by multithreading?? I have to import data from database kept in another machine into my database.It would take quite a longer time especially when database is quite large.I want to show the progress and every data being imported to the user so that user does not think that system has hanged on...Please help...

    i answered here:
    http://forum.java.sun.com/thread.jspa?messageID=9739423&#9739423

  • Display page load progress bar...

    I have a page which takes about 50-60 secs to load and I want to display some kind of progress bar indicating to the user that the page is loading. This page is a pop up page with a report returning a lot of data. I searched the forum and most of the progress bar examples are related to a button click event. However I want the progress bar to display before the entire page has been loaded.
    I really need to get this done fast and any kind of help or suggestion will be really appreciated.
    Thanks!

    Hi Carl,
    I have a similar issue to the one 'user549354' listed.
    The application in this case is single page application with a couple of report regions, one of which takes about a minute for the query to return the result.
    The example listed below by you, and another one I have found by Vikas, both fire a javascript-redirect off a button... The related forum posts are:
    Long running process/query
    Re: Long running process/query
    but if you want the processing page off the initial url, this is not possible.
    Yes, you could workaround it by showing a button on the initial page which the user has to press to see the processing page ... but that is not an ideal solution.
    I am not very familiar with javascript, and have tried the following alternatives unsuccessfully
    1) Using a url to a different (intermediate) page (say page # 2) which has a display as text item that renders the animated gif image, with following source
    Please wait...
    <img src="/i/processing3.gif" />
    in combination with different types of processes (on load/after regions/after footer) which redirect to my original page (say page #1) by doing the following
    begin
    htp.init;
    owa_util.redirect_url('f?p=&APP_ID.:1:&SESSION.::&DEBUG.:1:::');
    end;
    This does not show the intermediate page at all, just waits until the actual page loads.
    2) use the display as text item mentioned above, and in the region source (html region) using the following:
    <META HTTP-EQUIV=Refresh CONTENT="2;URL=f?p=&APP_ID.:1">
    The problem here is that the animated gif becomes de-animated after the the number of seconds set in the code, in the above case 2 seconds.
    3) using the page header and footer javascript mentioned in the links off your post, and trying to fire it from a url type region using the following codce
    javascript:html_Submit_Progress(this);
    This fails with error – object does not exist – presumably because this needs to be fired off an item – wonder if it will work off a link.
    4) Various other permutations and combinations of the above…
    You have mentioned in your last post on this thread that an intermediate page could be called, that will fire the progress bar, and then redirect to the slow loading page.
    This is seems to exactly what I am after – with the url of the intermediate page being the initial url with which to access the application.
    The problem is that I do not know
    a)     where or how to fire the relevant javascript [javascript:html_Submit_Progress(this);] from, besides a button press, and also
    b)     how to (then and only then) re-direct to the slow loading page, so as to ensure that the animated gif is displayed… using any of pre-submit process (on load… after footer) prevents the page and the animated gif from rendering.
    I am sure that this is very much possible… any help would be very much appreciated.
    Thanks.
    Alex.

  • After updating to the latest version of Firefox on my Mac there is no progress bar for the page load. I really miss this feature and can't seem to find a way to obtain it.

    The page load progress bar that was on the lower right of the window is no longer there. After updating to the latest version of Firefox on my Mac there is no progress bar for the page load. I really miss this feature and can't seem to find a way to obtain it. The tab has a circular progress wheel but this is useless for determining a stuck or slow loading page.
    PLEASE NOTE: I am typing this in from a Windows based work computer but am asking about my Apple MacBook Pro that i use at home.

    Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    You can use "Firefox > History > Restore Previous Session" to get the previous session at any time.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.<br />
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • 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

  • HT1923 iTunes on my Windows Vista has failed to update over several weeks. Attempting uninstal/reinstall according to iTunes support page. Will not uninstall 'Apple Mobile Device Support' - goes to 99% then progress bar unwinds completely. Tried rebooting

    iTunes on my Windows Vista has failed to update over several weeks. Audio will not play out. Attempting uninstal/reinstall according to iTunes support page. Will not uninstall 'Apple Mobile Device Support' - goes to 99% then progress bar unwinds completely. Tried rebooting. Any clues??

    Hey petanque1,
    Thanks for the question. I understand that you are experiencing issues installing iTunes for Windows. The following article outlines the error message you are receiving and a potential resolution:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Some Windows customers may experience installation issues while trying to install or open iTunes 11.1.4.
    Symptoms may include:
    "The program can't start because MSVCR80.dll is missing from your computer"
    "iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows Error 126)”
    "Runtime Error: R6034 - An application has made an attempt to load the C runtime library incorrectly"
    "Entry point not found: videoTracks@QTMovie@@QBE?AV?$Vector@V?$RefPtr@VQTTrack@@@***@@$0A@VCrashOnOverf low@@***@@XZ could not be located in the dynamic link library C:\Program Files(x86)\Common Files\Apple\Apple Application Support\WebKit.dll”
    Resolution
    Follow these steps to resolve the issue:
    Check for .dll files
    1. Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
    2. If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
    3. Reboot your computer.
    Note: Depending on your operating system, you may only have one of the listed paths.
    Uninstall and reinstall iTunes
    1. Uninstall iTunes and all of its related components.
    2. Reboot your computer. If you can't uninstall a piece of Apple software, try using theMicrosoft Program Install and Uninstall Utility.
    3. Re-download and reinstall iTunes 11.1.4.
    Thanks,
    Matt M.

  • My iPhone 4s is not switching on, I connected it to itunes thru my Windows 7 laptop and it says phone needs to be restored. I clicked okay and it started the process however the progress bar with the apple logo is on the screen, progressbar do not start

    My iPhone 4s is not switching on, I connected it to itunes thru my Windows 7 laptop and it says phone needs to be restored. I clicked okay and it started the process however the progress bar with the apple logo is on the screen, progress in the bar did not start yet after 5 hours. Some one please hep me.

    I did put it in DFU mode but its still not working, although everytime it shows your iphone needs to be restored. Kindly help.

  • I am performing a clean install of OS X vs. 10.8.5 on a new internal hard drive.  At the end of the installation process the progress bar stalls with a minute to go - error message "Can't download the additional components needed to install OS X" appears

    At the end of the installation process (Clean install, new 500GB internal hard drive, formatted and partitioned, MacBook 13" Aluminum, late 2008) the progress bar stalls and eventually a drop down error message appears "Can't download the additional components needed to install OS X".   I am using a USB 8 GB bootable flash drive.  Any ideas? 

    At the end of the installation process (Clean install, new 500GB internal hard drive, formatted and partitioned, MacBook 13" Aluminum, late 2008) the progress bar stalls and eventually a drop down error message appears "Can't download the additional components needed to install OS X".   I am using a USB 8 GB bootable flash drive.  Any ideas? 

  • How to create progress bar in web page!!!

    Dear,
    I do not know how to create progress bar in web page?
    Please show me the way to solve it.
    Best regards,
    Huy

    God your lucky/lazy
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    public class ProgressBar extends Applet
      private boolean isStandalone = false;
      private int width;
      private int height;
      private double percentComplete;
      private double fundsTarget;
      private double fundsRaised;
      private Properties values;
      private String propertiesFile;
      private JPanel jPanel1 = new JPanel();
      private JProgressBar PB_FUNDS_PROGRESS = new JProgressBar();
      private GridLayout gridLayout1 = new GridLayout();
      private BorderLayout borderLayout1 = new BorderLayout();
      private JPanel jPanel2 = new JPanel();
      private JLabel jLabel1 = new JLabel();
      private JLabel jLabel2 = new JLabel();
      private JLabel jLabel3 = new JLabel();
      private GridBagLayout gridBagLayout1 = new GridBagLayout();
      private JPanel jPanel3 = new JPanel();
      private JLabel jLabel4 = new JLabel();
      //Construct the applet
      public ProgressBar()
      //Initialize the applet
      public void init()
        try
          jbInit();
        catch(Exception e)
          e.printStackTrace();
      //Component initialization
      private void jbInit()
      throws Exception
        fundsTarget = new Double( 100 ).doubleValue();
        fundsRaised = new Double( 50 ).doubleValue();
        PB_FUNDS_PROGRESS.setBackground(Color.green);
        PB_FUNDS_PROGRESS.setForeground(Color.red);
        this.setLayout(gridLayout1);
        jPanel1.setLayout(borderLayout1);
        jPanel2.setLayout(gridBagLayout1);
        jPanel1.setBackground(Color.white);
        jPanel2.setBackground(Color.white);
        jPanel3.setBackground(Color.white);
        jLabel2.setBackground(Color.white);
        jLabel1.setBackground(Color.white);
        jLabel3.setBackground(Color.white);
        jLabel4.setText(" ");
        jLabel1.setText(" ");
        jLabel2.setText(" ");
        jLabel3.setText(" ");
        this.setBackground(Color.white);
        this.add(jPanel1, null);
        jPanel1.add(PB_FUNDS_PROGRESS,  BorderLayout.CENTER);
        jPanel1.add(jPanel2, BorderLayout.SOUTH);
        jPanel2.add(jLabel2, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
         GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 0, 5, 0), 0, 0));
        jPanel2.add(jLabel1, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,
         GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 150, 5, 5), 0, 0));
        jPanel2.add(jLabel3, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
         GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 5, 4, 150), 0, 0));
        jPanel1.add(jPanel3, BorderLayout.NORTH);
        jPanel3.add(jLabel4, null);
        propertiesFile = this.getCodeBase().getFile().replaceAll("%20", " ")+"funds.properties";
        System.out.println("Properties file at " + propertiesFile);
        values = new Properties();
        try
          values.load(new FileInputStream(propertiesFile));
          fundsTarget = new Double( values.getProperty("TARGET", "100").toString() ).doubleValue();
          fundsRaised = new Double( values.getProperty("RAISED", "50").toString() ).doubleValue();
          System.out.println("target: " + fundsTarget + " raised: " + fundsRaised);
        catch (IOException ioe)
          System.err.println(ioe.getMessage());
        percentComplete = (fundsRaised/fundsTarget)*100;
        System.out.println(percentComplete);
      //Start the applet
      public void start()
        PB_FUNDS_PROGRESS.setMaximum(new Double(fundsTarget).intValue());
        PB_FUNDS_PROGRESS.setMinimum(0);
        repaint();
      //Stop the applet
      public void stop()
      public void paint(Graphics g)
        Graphics2D g2 = (Graphics2D)g;
        PB_FUNDS_PROGRESS.setValue(new Double(fundsRaised).intValue());
        String percent = Double.toString(percentComplete).substring(0, 4);
        jLabel4.setText("Currently At " + percent + "%");
        jLabel1.setText("100%");
        jLabel2.setText("50%");
        jLabel3.setText("0%");
      //Destroy the applet
      public void destroy()
      public String getAppletInfo()
        return "Funds progress applet by A really nice person";
    }

  • I am on dial up. Can I get the progress bar for loading a page back it helps me know how things are going.

    On previous versions of Firefox there was a progress bar when you were loading a page. It was in the lower right corner. How can I get it back? It would be very helpful if there was an add on for it for those of us still on dial up.

    Be aware that the loading indication that you see doesn't represent a real indication of what is happening. It just starts increasing till about 50% of the bar is filled and if it takes too long then the steps get smaller (half what is left as available space in the end or stop at all).
    There is also the Net tab on the Web Console that can show how long it takes to load content.
    *Firefox > Web Developer > Web Console

  • [CS4] "Progress bar" relative to the actual page number

    Hi!
    First of all thanks to the community. It's being really helpful with my start on inDesign scripting! 
    I'm trying to insert a kind of progress bar on each page showing the percentage of the pages you have already read. Something like this sketch:
    I think I can start with this script (by [Jongware]-GfBROo) that will set the size of the dark shape, but I don't know how to do it relative to the current page number... Any tip or link to some post I can adapt?
    //DESCRIPTION:Change all Swatch Objects size to a predefined value
    change_width = 10;
    change_height = 20;
    for (a=0; a<app.activeDocument.allPageItems.length; a++)
    if (app.activeDocument.allPageItems[a].appliedObjectStyle.name == "swatch")
      gb = app.activeDocument.allPageItems[a].geometricBounds;
      app.activeDocument.allPageItems[a].geometricBounds = [gb[0], gb[1], gb[0]+change_height, gb[1]+change_width];
    Thank you so much!

    Problem solved!
    (thanks to andrewman from Domestika forums)
    Here is the script for my specifc requirements:
    * Progress bar
    * javascript (.jsx)
    // Change according to the document
    width_bar = 20;
    style_name = "current_progress";
    num_pags = app.activeDocument.pages.length;
    increase = width_bar/num_pags;
    for( i=0; i < num_pags; i++ ) {
    pg = app.activeDocument.pages.item(i);
    for( j=0; j < pg.allPageItems.length; j++ ) {
    pgi = pg.allPageItems[j];
    if( pgi.appliedObjectStyle.name == style_name ) {
    dim = pgi.geometricBounds;
    progress = Math.round( (( dim[1] + increase ) + ( i * increase )) * 100 ) / 100;
    pgi.geometricBounds = [ dim[0], dim[1], dim[2], progress ];
    alert('Done!');
    THINGS TO CHANGE: width of the bar (will be the length in the last page) and the style name you are going to use.
    Just need to create the bar on the master page, give it the style,  select all the pages and click "Override all Master Page Items". Run the script!
    If you add new pages, only need to override them and run the script again 

  • I tried to update the software overnight, and it was still in the beginning stages of the progress bar when I woke up.  When I restarted the process I have to restore the phone, its again stuck in the beginning of the process. Does anyone know how long th

    I tried to update the software overnight, and it was still in the beginning stages of the progress bar when I woke up.  When I restarted the process I have to restore the phone, its again stuck in the beginning of the process. Does anyone know how long this should take?  The beginning sections seemed to fly by.

    Hi NWL1,
    Thanks for the question. If I understand correctly, the iPhone won't update and is stuck. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
    Thanks for using Apple Support Communities.
    Have a great day,
    Mario

  • HT4796 I'm in the process of migrating my info from a Windows pc to my mac, however the information transfer has started more that an hour ago, but the progress bar moved 2 mm? how can I spead up this process

    I'm in the process of migrating my date from a WindowsPc to a mac, however the transfer has started more than an hour ago and the progress bar has moved 2 mm on the first catogory only.  How can I spead up this process

    Hanlie wrote:
    I'm in the process of migrating my date from a WindowsPc to a mac, however the transfer has started more than an hour ago and the progress bar has moved 2 mm on the first catogory only.  How can I spead up this process
    Are you using WiFi? if you are this will take a long time, switching to a wired connection will go much faster but as you have started I would not change now.

Maybe you are looking for

  • Premiere CS5: need to feather edges in 16 point garbage matted video

    Meaning, I don't want 4 feathered edges (which seems to be all the "Edge Feather" tool does)... I need 16 of them. Here's what I'm doing, a head, neck over a greenscreen. I'm color keying out the head and neck, then garbage matteing out kind of a hal

  • Best Raid Block Size for video editing

    I cannot seem to get my head round about which Raid Block Size I should set my Striped Raid 50 configuration to. There seems to be very little info about this, but what info there is seems to imply that it could seriously affect the performace of the

  • Multiline text in form item

    Hi, I am having the following issue. I have a form with several items, each of them containing a Text element. When the text is too long, the text element wraps the text in a second line, but the form only shows the first line. The curious part is th

  • When turning the Ipod on the screen is completely blank with lines

    When I turn my Ipod on the ipod is completely blank with lines up and down the screen and when turning it on it should have the main menu with the songs and other information. How do I fix this? The ipod serial number is YM715WZCX9B. The ipod color i

  • Clear or write all buffers, like complete restart of transaction

    Hi all, I have a (web dynpro) app with a button that calls some BAPIs and some COMMITs. It works fine, but when I use this function twice for the same data within one session, then it dumps at the second time (because of a nested perform_on_commit er