Jni using progress bar problem

Hi
i am new in jni application actually my project is j2ee(servlet,jsp) based. In my one of project module we need to call vb ocx for large processing in background so it is time taking and my framwork is pure mvc based so how i have to show
progress bar please give me some idea....
Thanks in advance and sorry for english
ni

There's no solution to that in the JNI or Java side of things. If the VB has control, only the VB knows what its progress is, so only the VB can display it. So change it to do that.

Similar Messages

  • 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 can i use Progress bar in IR Report

    Hi ,
    I have created IR Report based on the View so, it's been taking 10-15 mins of time to execute the IR Report. Here user want to see the Progress bar while executing the IR Report. How can i use Progress bar in IR Report.
    Anybody have idea on Progress bar please help me.
    Regards
    Narender B

    Hi ,
    Thanks for your information.
    I am new to the APEX.*i need to show Progress bar while opening the each page* then user can know some process is happening from the backside and i don't know where i need to add and call the below function.could you please provide the steps for the progress bar.
    In my application there are almost 100 pages are there so, i need to show progress bar on each page while opening .could you please provide Global function to call on each page.
    function html_url_Progress(pThis){ 
    $x_Show('AjaxLoading');
    window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
    //doSubmit('APPLY_CHANGES');
    redirect(pUrl);
    Regards
    Narender B

  • Progress bar problem in IE with on demand application call

    I have several on demand application processes that I call from javascript. The application processes in turn call pl/sql procedures. Some of the procedures take up to 10 seconds to complete and while they are running, the screen just appears to freeze so the user does not know that they are actually running. I would therefore like to add some kind of a progress bar or hourglass or some indication that things are happening.
    So I found the instructions in Re: Display of Hourglass When Page is processing . This works great in Firefox, but not in IE.
    My Footer text:
    <style> #AjaxLoading{padding:5px;font-size:18px;width:200px;text-align:center;left:50%;top:20%;position:absolute;border:2px solid #666;background-color:#FFF;}
    </style>
    <div id="AjaxLoading" style="display:none;">..Processing..
    <img src="#IMAGE_PREFIX#processing3.gif" id="wait" />
    </div>
    My javascript:
    function create_invoice(pMilestoneNumber){
    var agree=confirm("Are you sure you want to bill this Invoice?");
    var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=P110_CREATE_INVOICE',$v('pFlowStepId'));
    if (!agree)
         return;
    html_ShowElement('AjaxLoading');
    get.addParam('x01',pMilestoneNumber);
    gReturn = get.get();
    alert(gReturn);
    get = null;
    doSubmit();
    In Firefox, the Progress bar appears immediately after the user clicks ok to the confirm request. In IE, it does not appear until the application process returns with the return message.
    Any help would be greatly appreciated.

    Thanks for your reply. You are right, part of the code got stripped off, I guess I failed to use the code brackets before and after. Here is is again using the code brackets:
    Javascript:
    <script language="JavaScript" type="text/javascript">
    function create_invoice(pMilestoneNumber){
    var agree=confirm("Are you sure you want to bill this Milestone?");
    var get = new
    htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=P110_CREATE_INVOICE',$v('pFlowStepId'));
    if (!agree)
         return;
    html_ShowElement('AjaxLoading');
    get.addParam('x01',pMilestoneNumber);
    gReturn = get.get();
    alert(gReturn);
    get = null;
    doSubmit();
    </script>Footer:
    <style>   #AjaxLoading{padding:5px;font-size:18px;width:200px;text-align:center;left:50%;top:20%;position:absolute;border:2px solid #666;background-color:#FFF;} 
    </style> 
    <div id="AjaxLoading" style="display:none;">..Processing..<br /><img src="#IMAGE_PREFIX#processing3.gif" id="wait" />
    </div>I was using IE8, but I found an another computer with IE7 and I have the same problem there.
    My javascript code throws up a confirm message and as soon as a hit ok, Firefox brings up the progress bar and it stays up until the alert message comes back with the return from the application process. Just the way I want it. In IE, the screen just freezes after I hit ok (the same way as if you don't have a progress bar at all), but then when the alert message comes up with the return from the application process, the progress bar comes up (a little late....).
    Do you have any suggestion as to what my problem may be?

  • 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

  • Youtube progress bar problem on ipad

    When playing a YouTube video on my ipad air, the progress bar is now appearing higher up in the video and obstructs it.  Normaly, and on my imac, it appears just above the controls section on the bottom. 

    How are trying to watch this YouTube video? With Safari? Or with the YouTube app?
    I see no problems viewing YouTube videos on my iPad using the YouTube app. The progress bar shows at the bottom of the screen as the video starts and it quickly faded away.

  • Need to use progress bar in my application

    hello friends,
    Actually i m using jsp filedownload and I am gettting my file in byte array and need to implement a progress bar while downloading file (as IE showing in status bar downloading file size ..% of total file size)...no fake progress bars and no stop gap solutions as like a gif moving with sign "plz wait ..file is downloading "
    plz help how to get this done
    My code
    HashMap result = (HashMap)request.getAttribute("requestParams");
         String type = request.getParameter("type");
         boolean isFile = false;
              if(result != null){
              String successFlag = (String) result.get("");
              String sFileName = null;
              byte[] bFile = null;
              String sContentType = null;
              if(successFlag != null && successFlag.equals("true")){
                   for(int i=0;i<result.size();i++){
                        sFileName = (String) result.get("FILENAME");
                        bFile = (byte[]) result.get("FILEDATA");
                        sContentType = (String) result.get("CONTENTTYPE");
                   response.reset();
                   if(null!=bFile) {
                        if(bFile.length>0){
                             if(sContentType == null || sContentType.equals("")){
                                  response.setContentType( "application/octet-stream" );
                             else response.setContentType(sContentType);
                             response.setHeader("Accept-Ranges", "bytes");
                             isFile = true;
                             response.setHeader("Content-Length", Integer.toString(bFile.length, 10));
                             if(null!=sFileName){
                                  if("view".equals(type)){
                                       if(null!=sFileName)response.setHeader("Content-Disposition","inline; filename=\""+sFileName+"\"");
                                  else{
                                       response.setHeader("Content-Disposition","attachment; filename=\""+sFileName+"\"");
                             ServletOutputStream outs = response.getOutputStream();
                             if(null!=bFile)outs.write(bFile);
                             outs.flush();
                             outs.close();
                             out.clear();
                             out = pageContext.pushBody();
                                       }

    You should get your keyboard fixed. There's a lot of letters missing from what you type and it makes it very hard for other people to read. It looks extremely inelegant.
    Anyway, your JSP isn't in control of the download. (You shouldn't have all that Java code in a JSP either but that's a separate issue.) All it does is to send the data to the browser, which is in charge of the download. And in all the browsers I use, there's a box which tells you how far the download has proceeded. No real need for a progress bar, even if you could persuade the browser to make one. Which you can't.

  • UI 6.7 How could I use Progress bar form?

    Hi all,
    some SAP Business One add-ons use a small form with a progress bar instead of using the progress bar in the status bar. Does anyone knows how to use this form?
    Bernhard

    Hi,
    I think that you have to create your own form.
    In my Addon, I create a form with FormType = ft_FixedNoTitle, add several EditTexts (9) with the property Enabled = False and Visible = False, and the name beginnig with "oEditText" + Number Sequential.
    After, when executing my code, I change the property Visible = True, to the next EditText.
    That way I have a "progress form" like used in others Addons.
    I use the following code to "progress" (after created the form)
        Private Sub WriteProgressInstall(ByVal pMsg As String, ByVal pPosition As Integer)
                Dim oForm As SAPbouiCOM.Form
                Dim oStaticText As SAPbouiCOM.StaticText
                Dim i As Integer
                Try
                    If pMsg <> String.Empty Then
                        oForm = SBO_Application.Forms.Item("frmProgressForm")
    'if we have a StaticText to show the progress message
                        oStaticText = oForm.Items.Item("oMSG").Specific
                        oStaticText.Caption = pMsg
                    End If
                    'Hide all "progress steps"
                    If pPosition = 0 Then
                        For i = 1 To 9
                            oForm.Items.Item("oEditText" + CStr(pPosition)).Visible = False
                        Next
                    End If
                    oForm.Items.Item("oEditText" + CStr(pPosition)).Visible = True
                Catch er As Exception
                    MsgBox(er.Message)
                End Try
            End Sub
    To move to next "progress step" is just call
    WriteProgressInstall("Executing Step 1..", 1)
    HTH,
    Ribeiro Santos

  • Preloader progress bar problems

    If you've got a second, go to
    http://www.madhouseent.net/
    My progress bar gets to the 50% mark and then loads the site.
    That's not the end of the world, but someone on a slow connection
    might give up because it looks like it's loading slower than it
    really is.
    The loading bar graphic is the correct size.
    Here's my code for the first frame and the second frame:

    Well, it looks like the full width of your loading bar is
    around 200 pixels. Not 100 which is what you're multiplying your
    percent by here.
    Try this instead.
    var fullLoaderBarWidth = (whatever the actual full width of
    your loader bar should be at 100%).
    (first frame)
    bytes_loaded = Math.round(this.getBytesLoaded());
    bytes_total = Math.round(this.getBytesTotal());
    getPercent = bytes_loaded/bytes_total;
    this.loadBar._width = getPercent*fulLoaderBarWidth;
    this.loadText = Math.round(getPercent*100)+"%";
    if (bytes_loaded == bytes_total) {
    this.gotoAndPlay(3);
    (second frame)
    this.gotoAndPlay(1);

  • Flash Player & Flash progress bars problem

    Hi.
    I'm rather desesperate here.  I have the latest version of Flash Player with the latest version of Mozilla Firefox (3.5.3).  Wherever I try to upload a file on a website that uses a Flash component to show the progress, it simply goes up to 100% under a second for a 15MB file.  This is my latest Speedtest.net :
    http://www.speedtest.net/result/574890835.png
    It's IMPOSSIBLE to upload anything over 2MB instantly with that kind of connection.  Even if it's a really good one.
    I've tried anything and everything; even a reformat (two weeks or so ago) and it did NOT solve the problem.  So, I'm pretty sure that the problems lies in either one of those software/code :
    - HTML 5
    - Flash Player
    I don't know if you guys can solve the problem but I just hope you can.  It's really annoying because a majority of file-hosting websites use Flash-based uploaders.  I've been in multiple forums in search for help but nobody seems to be able to solve my problem and in which seem to be unique. The problem also occurs and Internet Explorer 8 and Chrome on my end.  So, my problem isn't browser specific.  The problem also occurs on Windows 7 RC.
    My (modest) machine :
    Intel Core 2 Duo E6600 2.4GHz
    2 GB of DDR2 667MHz Ram
    nVidia GeForce 8500GT 512MB
    ~1.3TB of Hard drive (across 4 hard drives)
    Windows Vista Home Premium FR (Genuine) & Windows 7 RC (Build 7100) [dual-boot]
    Thank you for your help in advance.

    Please help!
    If you want more details, please, ask them to me!

  • How to make use of *progress bar*?

    I have a progress bar requirement in my swings project,
    i.e on clicking a button, some task should be executed and in parallel to this
    progress should run on progress bar in the same frame and soon after this task
    gets completed the progress on progress bar should come to an end.
    How can i do this in swings?
    could any one help me out from this?

    How to use progress bar
    http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html
    If you want an example scroll down to the bottom of the page and download the examples.

  • Progress Monitor OR Progress Bar.........Please help

    I have a JFrame with a menu. As soon as I click the menu I am adding a panel to the JFrame which takes some time. To indicate this to the user should I use the Progress Bar or the progress monitor.
    In either case how do I use it?
    Thanks in advance and it would be very useful if someone could give a small skeleton code.
    Thanks once again

    I am having the same problem which you had with the progress bar.
    I have a DesktopPane with Menu Bar on the top and Internal Frames get added to the DesktoopPane according to the Menu Item selected and the Internal frame takes time to open I want to show the progress bar. I thing you have got the solution by this time.
    Has anybody else have the solution for the above. Basically i want to show the time taken by the classes to load a Internal frame using Progress Bar. Please send me the piece of code. Thanks in Advance.

  • Jsf progress bar

    Hello,
    I have an application where I need to read a large text file and insert data to database.I want to display progress bar(I am using netbeans 6.1 and hence woodstock progress bar) while the above process running in the background.I am not sure whether I have run that process in a separate thread.Please help with any ideas on how to use progress bar for this purpose.
    Thanks in advance

    harish7447 wrote:
    Can you please explain how you fixed it?Use Javascript to display an initially hidden element which has an animated loading gif in it.
    If you want a realtime 0-100% progress bar, have a look to RichFaces. They have such a component.
    Also if possible put in your code snippet. I would appreciate it a lot. This is not a code factory or so. Start your own topic where in you elaborate the problem [the smart way|http://catb.org/esr/faqs/smart-questions.html].

  • Progress bar doesn't work if enableRedraw is false? Script UI

    Hi,
    I just noticed in Peter Kahrel's ScriptUI manual (version 2.0) this note:
    "Note: in scripts that use progress bars, you cannot set
    app.scriptPreferences.enableRedraw to false. If you do, the progress
    bar doesn't display correctly. This is on Macs only."
    Not having a Mac to test this on, I'm wondering what "doesn't display
    correctly" actually involve?
    Thanks,
    Ariel

    Thanks Uwe.
    Anyone who has a Mac and a spare moment, may I invite you to download
    the demo of the "Create Character Styles" script on my website:
    www.freelancebookdesign.com, under the "Scripting" tab.
    It has a progress bar and enableRedraw = false (hence my interest in
    this subject), and it never occurred to me to test it on a Mac.
    If someone could test it on their Mac and tell me what happens, that
    would be much appreciated.*
    Ariel
    Free license for the first person who lets me know!

  • How to get multiline text on progress bar

    Hi there,
    I have to use Progress Bar and need to show text in multiline.
    can anyone please suggest me how to achieve that.
    Thanks,
    Prashant

    can u guys figure out what really i am missing here?A spoon-fed solution, I suppose. So enjoy:
    // A JProgressBar with two lines of text.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.beans.*;
    public class PB2Lines extends JPanel implements
                             ActionListener, PropertyChangeListener {
        private TwoLinesProgressBar progressBar;
        private JButton startButton;
        private Task task;
        class Task extends SwingWorker<Void, Void> {
            public Void doInBackground() {
                int progress = 0;
                //Initialize progress property.
                setProgress(0);
                while (progress < 100) {
                    progress += 25;
                    setProgress(progress);
              if (progress==25)
                progressBar.setString("Eggs|added");
              else if (progress==50)
                progressBar.setString("Sugar|added");
              else if (progress==75)
                progressBar.setString("Milk|added");
              else
                progressBar.setString("Everything|done");
                    try {
                      Thread.sleep(500);
                    } catch (InterruptedException ignore) {}
                return null;
            public void done() {
                Toolkit.getDefaultToolkit().beep();
                startButton.setEnabled(true);
                setCursor(null); //turn off the wait cursor
        public PB2Lines() {
            super(new BorderLayout());
            //Create the demo's UI.
            startButton = new JButton("Start");
    //        startButton.setActionCommand("start");
            startButton.addActionListener(this);
            progressBar = new TwoLinesProgressBar(0, 100);
            progressBar.setPreferredSize(new Dimension(200,40));
            progressBar.setValue(0);
    //        progressBar.setStringPainted(true);
            progressBar.setString("Progress|Bar");
            JPanel panel = new JPanel();
            panel.add(startButton);
            panel.add(progressBar);
            add(panel, BorderLayout.PAGE_START);
            setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));
         * Invoked when the user presses the start button.
        public void actionPerformed(ActionEvent evt) {
            startButton.setEnabled(false);
            setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
            task = new Task();
            task.addPropertyChangeListener(this);
            task.execute();
         * Invoked when task's progress property changes.
        public void propertyChange(PropertyChangeEvent evt) {
            if ("progress" == evt.getPropertyName()) {
                int progress = (Integer) evt.getNewValue();
                progressBar.setValue(progress);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                   JFrame frame = new JFrame("ProgressBar with 2 lines");
                   frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   JComponent newContentPane = new PB2Lines();
                   newContentPane.setOpaque(true); //content panes must be opaque
                   frame.setContentPane(newContentPane);
                   frame.pack();
                   frame.setVisible(true);
      class TwoLinesProgressBar extends JProgressBar {
        public TwoLinesProgressBar(int min, int max) {
          super(min, max);
        private int getXofCenteredString(String s) {
          int ix= getFontMetrics(getFont()).stringWidth(s);
          return (getWidth()-ix)/2;
        protected void paintComponent(Graphics g) {
          super.paintComponent(g);
          int i= getString().indexOf('|');
          String s= getString().substring(0,i);
          int ix= getXofCenteredString(s);
          g.setColor(Color.BLACK);
          g.drawString(s, ix,15);
          s= getString().substring(i+1);
          ix= getXofCenteredString(s);
          g.drawString(s, ix,35);
    }

Maybe you are looking for