How to monitor (progress bar) a DB request ?

Hi,
I developped an application that requests a sybase database.
I would like to monitor (for instance with a progress bar) the time a request takes, in order to inform the user of the application.
Does someone have an idea ?
Thanks in advance, Fred.

As long as you cannot break down the request into several pieces (an execute them separately), there is probably no way to do this.

Similar Messages

  • How to show progress bar in miniplayer?

    How to show progress bar in miniplayer? I play a lot of music podcasts and it would be very helpful if anyone could help me bring that feature back.

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

  • How to create progress bar?

    pls,can anyone tell me? how to create progress bar?
    thanks,
    screen410099

    it is well documented how to create progressbars on page 173 in Solutions.pdf
    also you can find sample code in InDesign SDK\sources\sdksamples
    Regards
    Bartek

  • 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";
    }

  • 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

  • How to use progress bar

    Hi
    I am using jdev11.1.1.5.0
    I have created an adf application in which i have a select many shuttle to display data from database.
    On the radio button change event i am setting another where clause on associated vo and re-executing vo.
    Now the problem is that the processing takes few seconds to fetch data from database according to where condition. For the time being I want to display a progress bar to user.
    How it is possible....?
    Thanks...

    Read http://myjdeveloperhints.blogspot.de/2010/12/add-glass-pane-to-long-running-db-job.html...
    Here it's an example http://myjdeveloperhints.blogspot.de/2010/12/add-glass-pane-to-long-running-db-job.html
    Timo

  • How to add progress bar in servlets

    a task running within a program might take a while to complete, then how i can make a progress bar.

    you can't, well not reliably anyway
    that is unless you want to do some crazy ajax thing but i've never heard of anyone going through that much trouble for a progress bar
    just popup a message that says "Processing..."

  • 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

  • How to keep Progress bar in front of the main frame?

    Hi all,
    How can i keep the progress bar in front of the main frame all the time while the proggress bar is visible?

    Perhaps the question is not clear.
    I want the progress bar to remain in front of the parent frame as long as it is visible on screen.that is when i click on the parent frame,progress bar should not go behind the frame.
    Can ne1 plz help?
    Regards,
    Mansi

  • How to show progress bar

    how to show progress bar

    This gets asked about 100 times a day, especially when you get people posting it multiple times - learn to use the search facility, or at least Google. It's really not that hard.
    Type "java progress bar" into Google and hit "I'm feeling lucky" - the answer is there.

  • IE progress bar continues after Request is completed

    I have an iPlanet J2EE Struts web application running in a 6.0.280 IE Browser. I have a JSP page that when submitted, the request is 100% successfully completed. I get the standard "Done" message on the browser bar, the IE globe is not active, and the web page properly displays the expected results. However, the IE progress bar continues to increase up to a point, indicating that more processing is expected or still waiting for a response. That�s the issue. There are 2 JSP�s that make-up this web page. One is an outer page which contains links and filtering options and the other is an inner frame which contains the data on which the submit will act. Although it may not be enough to illustrate this issue, below is a snippet of the both JSP�s. Any suggestions would be appreciated:
    Segment of Main JSP code:
    ( The Javascript method submitDoUpdate() is invoked when the user clicks a �submit� link.)
    This method resides in the outer page(main frame/page)
    * Submit update
    function submitDoUpdate(){
    top.main_frame.innerFrame.document.myForm.submit();
    The submit will POST the form using the following from the InnerPage(innerFrame/page) and invoke the Struts Action listed.
    <FORM NAME=" myForm " action="myAction.do" method="POST">

    maybe it's doing something else? are there images in your page?

  • How to use progress bar for Main and Subsequences in teststand

    HI,
    I have one main sequence in that I am calling different subsequences (Containing many steps and for loop).
    I am trying to use progress bar for this sequence, but my requirement is progressbar is able to show the progress of all the steps containing in Main and subsequences.
    I have developed sequence in that I am able to show the progress for only Main sequence steps not for subsequences steps.
    Is it possible? If yes please let me know the suggestions.
    Thank You

    Hi Santosh
    Here you are
    Greetings
    Juergen
    never Double Click on Submit
    Message Edited by j_dodek on 08-05-2008 08:05 AM
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
    Attachments:
    Progress_ts351.seq ‏52 KB

  • How to display progress bar

    In the AIUserSuite there is not a way to display the progress bar, seached everywhere and found nothing.
    Please help!

    minimum99 wrote:
    Is that something you can share?
    I'm afraid not. Even if I were allowed to, it wouldn't be much use -- it's built on a ton of internal stuff
    I think you're on the right track with just doing it manually. Throwing up a simple progress window isn't too bad; the only pain is in the flags, to make it semi-modal. The rest is very straight forward.

  • How does webutil progress bar work?

    I've noticed that AS_TO_CLIENT_WITH_PROGRESS is suposed to show a progress bar while the download is procesing.
    Is there any way to use a similar progress bar while we are running a heavy data base process or a process in the form?

    Hello,
    <p>Maybe this article could help<p>
    Francois

  • How to Remove progress bar popup menu?

    Hi to all,
    i am developing a customized form using the templete.fmb
    but when i am implementing it on the application, once click on the button a new form will be opened after when i close the window,the progress bar show up and does not allow me to close the form.
    can anyone tell me why is that,thks a lot
    Regards,
    s

    Ss far as i remember you have to add your own code for closing the form in the app_window-procedures. It's some years ago i did ebs-development, so check the WHEn-WINDOW-CLOSED for the proper procedure-name, and the ebs-developer-guide for detailed steps.

Maybe you are looking for

  • My computer died.  how do I retrieve my itunes library if i back up my phone to the cloud daily?

    My pc crashed.  When I access my iTunes account, the only music in my library is the music I purchased from Apple.  I had music purchased from other sites and also music ripped from CDs.  I back up my phone to iCloud daily.  Can I restore my iTunes l

  • Can't Print B&W Only With Samsung CLP-300N

    I recently purchased an iMac to replace my XP CD. I've been a Windows XP user for a while, and had a Samsung CLP-300N attached to my network. I was able to fine-tune the printer driver settings (quality, number of copies, bw/color, etc) in Windows XP

  • Upgrading OS X 10.3.9....

    Hi, first time on the forum and I was wondering if you could help. My friend has an OS X Leopard upgrade DVD (says on the disc) that he got direct from apple after buying a mac book with Tiger on it a week or so before Leopard was released. He has le

  • Account payable with payment block

    how to assign one company code to two different controlling area, where do we define payment block reason ? Thanks

  • Grid Control stops sending emails?

    Hello everyone. Interesting thing happened today. For whatever reasons, Grid Control stopping sending out email alerts that we have configured. Let me give some details. We have customized some rules so we can receive email alerts if something goes w