Dialog box pblm in for loop

pl check this code sample at once..
for(int i = 0 ;i< sDoc.sAwData.smVec_List.size() ; i++)
     st.execute(sqlQuery);
     System.out.println("Tables Created ");
     JOptionPane.showMessageDialog (this,"Tables Created","Tables Title",JOptionPane.WARNING_MESSAGE);
i am executing the sqlQuery in for loop
as i am keeping the st.execute(sqlQuery) in for loop usually it will iterates that many no of times according to "i";
i also have to display the Dialog box using JOptionPane at one time only.
when the sqlQuery is successfully executed.
as i kept that dialog in for loop it is displaying morethan one time according to "i";
is there anyway to display that dialog at single time ??
pl give me some suggestions and if possible along with some sample code using for loop
thanks in advance

If you want to display the dialog box only once, put
it outside the loop!!Thankyou
but the pblm is when i keep that dialog box in outside the for loop, that will display even the sql query fails to execute the statement.
i want to display that dialog if the sql query executing
successfully.
thanksinadvance
yours
rajesh

Similar Messages

  • CS Camera Raw Dialog Box: default setting for 'Tint'

    I have yet another question about Photoshop CS (not CS1,2,3 or 4)  that I cannot find answered in any book or online article that I have consulted. Because CS will not handle Camera Raw files from my camera (Nikon D50), what I do is to use an Adobe DNG converter to convert them to .dng format and then open them in Photoshop CS. When the Camera Raw dialog box opens, all the variables under the 'Adjust' tab are set to standard default values (e.g. 0 for Exposure, +5 for Shadows, +25 for Contrast, etc.) — except Tint. Tint very mysteriously varies from image to image, even though they all come from the same camera with the same menu settings and the same memory card and even if I have not previously done any adjusting of those images. For any given image, the Tint value stays the same if I change Settings between Camera Default and Selected Image. But it will be different when I open another image from the same series.
    What I should like to know is, firstly, what it is about a given Camera Raw file that 'tells' Photoshop what value to set Tint to; and, secondly, what the default value should be. Thanks in advance for any information.

    Michael Graubart wrote:
    Thanks in advance for any information.
    You would be far better off posting this in the dedicated Camera Raw Forum.

  • Dialog box pop up for a second and then disappears.

    For the past few weeks a dialog box has been appearing on my screen for a fraction of a second and then quickly dissappears. I am unable to read what it says, but in console it says:  java is listening from ::ffff:0.0.0.0:0 proto=6. It seems to happen only once a day but at random times and is not specific to any application. Any solutions? Thank you in advance.

    Have you solved the problem?

  • Creating a Save As dialog box with Applescript for Excel 2008

    This is going to be part of a larger script. I'm trying to figure out how to make the default save location to where the file opened from and the default file name to the current filename in the dialog box.
    Here is what I go so far...
    tell application "Microsoft Excel"
    tell active workbook
    set myFile to choose file name with prompt "Save file as:"
    end tell
    end tell
    I'm very new with working with Applescript, so at this point I have been piecing together code snippets.
    Any help would be great and thank you

    The choose file name command supports a default location parameter that tells it where to open the dialog:
    set myFile to choose file name with prompt "Save file as:" default location (alias "Macintosh HD:Users:username:foldername:")
    So you need to look at the Excel dictionary to determine the path to the current file and insert it into the script. Every version of Excel has slightly different dictionaries so the version you're running is critical to getting the right syntax.

  • I am trying to use automator to make a simple app that when I open it, it comes up with a dialog box that asks for a link that you want to download. and it will download it for you using the curl -O shell script in Terminal. How would I do it?

    I want this so I can just download anything I want by just having the link and I have made a few things with shell scripts in automator before, just never anything where i need to input a value into the shell script.

    Easy:

  • Caught in a loop of Apple ID dialog boxes!

    I'm trying to buy stuff on the iTunes store and I get caught in a loop of dialog boxes asking me for my Apple ID. I enter my Apple ID, but it just results in a new dialog box. The sequence of dialog boxes was the following:
    - Sign in to the iTunes store.
    - iCloud session has expired. Please sign in.
    - Sign in to the iTunes store.
    - Verification is required. Click ok, then verify payment information.
    - iCloud session has expired.
    - Sign in to view billing information.
    - Sign in to the iTunes store.
    - Verification is required. Click ok, then verify payment information.
    - Sign in to the iTunes store.
    - Sign in the view billing information.
    - iCloud session has expired.
    etc. etc. etc.
    How do I fix this? Help would be appreciated. Thanks very much.
    Nick.

    Hello Albini11,
    It may help to sign out of the iTunes Store, then sign back in.
    In iTunes, choose Store > Sign In (or Sign Out).
    Sign in or out of the iTunes Store
    http://support.apple.com/kb/PH1727
    Cheers,
    Allen

  • How to customize the Save as dialog Box for saving Web Query???

    Hello,
       we are usnging SAP NW Portal and BI 7.0 (SP14).
       We have published BI web queries in the Portal and it works just fine, now when the User select the Button "Save As" in the Context Menu of any web query, this will open a new Dialog Box name "Save As Dialog Box", so from this dialog box the user can select where to save the query, he/she have 3 options* to save qureies: My Favorites, Bex Portfolio and MyPortfolio, this also works fine.
      My Quetsion is: How can i customize the View of this "Save As" dialog box, so at the end the User can only select 2 Options:  My Favorites + MyPortfolio. So how to hide the Tab:  Bex Portfolio in the Dialog Box.
    Points for any good answer.
    Many Thanks and Regards,
    Nazih
    Edited by: Nazih Kayyali on Feb 3, 2009 4:04 AM

    In what you have posted, there is no reason it shouldn't work the same way in Acrobat 9. I would recommend that you submit your complete application to developer support.

  • Why does it take so long for the Open, Save, or Save As Dialog Boxes to Open?

    I'm having a problem throught CS6 with the Open, Save, or Save As dialog boxes not opening for a period of time after clicking on the desired functions.  It can take over a minute just to get the Open dialog box up to browse for a file.  Eventually, the dialog boxes open, but during the time that it's trying to open, the program is unresponsive.  It is happening with all of my CS6 programs.  I have unistalled and reinstalled with no fix.  The programs are updated.  Anyone else having this trouble?  Any solutions?

    Thanks for your response.  The system is a Windows 7 64-bit system with 4GB RAM installed.  I am not trying to save anywhere in particular.  By default, it would open to the user's documents, and does eventually, but it currently just sits for about a full minute before doing anything.  This machine was saving properly when CS6 was first installed about 5 months ago. 
    I've checked for unconnected network drives. I've also renamed the Illustrator preferences file based on a reccomendation that I found elsewhere.  However, neither of these helped.
    I can provide screenshots or anything else that's needed.

  • How to turn off the dialog box in the Write to Spreedshee​t File

    I am saving data in a loop using "Write to Spreedsheet File". When I gave a constant path to this Vi, it was fine. However, when I gave a path defined by a global variable, it consistantly popup dialog box and asked for my choice.
    How can I turn off that dialog box?
    Thanks.

    Simply ensure that the path in the global variable is valid.
    It could be that you have a race condition and the global is read before a valid value gets written to it from elsewhere. Can you show us some code?
    LabVIEW Champion . Do more with less code and in less time .

  • File dialog box slow in Mavericks

    Running 10.9.2
    Any application that tries to open the Finder file dialog box stops responding for 20-60 seconds and then recovers and opens the file dialog box. Automator, Mail, Preview, etc. all show this behavior.
    I've tried the suggestion to modify the auto_master file, no help.
    I've reloaded Mavericks, which fixed the problem for a few minutes, then it came back.
    It's killing my productivity. Any thoughts?

    __KB__ wrote:
    Hello,
    When the File dialog box is running, other while loop time execution goes down.
    Thanks.
    This you have already mentioned in your first post... now my question is how you've actually figured it out... or can you share your code here???
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • Open dialog box at the press of push button in alv tool bar

    Hi team,
    I have created alv report displaying field contents.mean while i have created one pushbutton in toolbar at the alv report output for downloading the  data into CSV Format.
    The requirement is ,At the push of the button, a standard download dialog box should open for download to local computer. The path and file name from the initial screen should be defaulted, but possible to update on the dialog box.
    please suggest me how to create download dialog box with field as file path where i can edit the defaulted file path.
    please let me know,how can i go ahead and satisfy the reuirement or share me piece of code if you have.
    Thanks And Regards,
    Sakti.

    After the user Command you can use
    * Display save dialog window
          CALL METHOD cl_gui_frontend_services=>file_save_dialog
            EXPORTING
    *      window_title      = ' Filenema'
              default_extension = 'TXT'
              default_file_name = 'data'
              initial_directory = 'c:\temp\'
            CHANGING
              filename          = ld_filename
              path              = ld_path
              fullpath          = ld_fullpath
              user_action       = ld_result.
          p_file  = ld_fullpath.

  • Crystal Report dialog box issues

    I am very new at .NET, and this is my second post to this forum.
    I've created a Crystal Report within a project using Visual Studio 2005 Professional Edition, on a Windows XP machine.
    The report is handled by a CrystalReportViewer, which has its ReportSource set to the report.
    Via a dialog box, the report asks for a signon and password for a SQL Server database.  Then, via a second dialog box, it prompts for a parameter required by the report.
    All of this works ok, but I have two issues:
    1) I would like to set the database signon and password so that the user doesn't have to enter them each time he runs the report.
    2) If the Cancel button is clicked on any of the dialog boxes, it renders the report unusable until I shut down the application and reopen it.
    I have looked online for two days, but have not been able to find a solution to these above problems.  It is probably simple, but I'm not seeing it.
    I am attaching the relevant code for the button that runs the report.
        Private Sub cmdChecks_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdChecks.Click
                CrystalReportViewer2.DisplayToolbar = True
                CrystalReportViewer2.Visible = True
                CrystalReportViewer2.Height = 600
                CrystalReportViewer2.Width = 1000
                CrystalReportViewer2.Left = 10
        End Sub
    Can anybody help me with this?
    Thank you!

    Hi,
    I would like you to know the code of the logon based on the object models-
    If you are using the ConnectionInfo then use the below code:-
    //For web application
    ConnectionInfo crConnection = new ConnectionInfo();
    // Connection Information
    crConnection.ServerName="D-2818-W2K";
    crConnection.DatabaseName="Northwind";
    crConnection.UserID="sa";
    crConnection.Password="sa";
    crReport.Load(Server.MapPath("CrystalReport1.rpt"));
    Tables crTables=crReport.Database.Tables;
    foreach(CrystalDecisions.CrystalReports.Engine.Table crTable in crTables)
              TableLogOnInfo crTLOI = crTable.LogOnInfo;
              crTLOI.ConnectionInfo=crConnection;
              crTable.ApplyLogOnInfo(crTLOI);
              crTable.Location=crTable.Location;// for multiple table selection
    CrystalReportViewer1.ReportSource=crReport;
    ====================================================================================
    //For desktop application
    ConnectionInfo crConnection = new ConnectionInfo();
    // Connection Information
    crConnection.ServerName="D-2818-W2K";
    crConnection.DatabaseName="Northwind";
    crConnection.UserID="sa";
    crConnection.Password="sa";
    crReport.Load(Application.StartupPath + "//CrystalReport1.rpt");
    Tables crTables=crReport.Database.Tables;
    foreach(CrystalDecisions.CrystalReports.Engine.Table crTable in crTables)
              TableLogOnInfo crTLOI = crTable.LogOnInfo;
              crTLOI.ConnectionInfo=crConnection;
              crTable.ApplyLogOnInfo(crTLOI);
              crTable.Location=crTable.Location;// for multiple table selection
    CrystalReportViewer1.ReportSource=crReport;
    =====================================================================================
    If using ReportDocument object model
    //For web application
    ReportDocument crReport= new ReportDocument();
    crReport.Load(Server.MapPath("CrystalReport1.rpt"));
    crReport.SetDatabaseLogon("sa","sa");
    CrystalReportViewer1.ReportSource =crReport;
    =====================================================================================
    //For desktop application
    ReportDocument crReport= new ReportDocument();
    crReport.Load(Application.StartupPath + "//CrystalReport1.rpt");
    crReport.SetDatabaseLogon("sa","sa");
    CrystalReportViewer1.ReportSource =crReport;
    To download sample code click [here|https://boc.sdn.sap.com/codesamples].
    You can also take help from [Dev library|https://www.sdn.sap.com/irj/boc/sdklibrary]
    Hope this helps!!
    Regards
    Amit

  • Excel is throwing error when it click print : 'No printers are installed. To install a printer click the File tab, and then click Print. Click No Printers Installed, and then click Add Printer. Follow the instructions in the Add Printer dialog box'

    Excel is throwing error when it click print : 'No printers are installed. To install a printer click the File tab, and then click Print. Click No Printers Installed, and then click Add Printer. Follow the instructions in the Add Printer dialog box'
    Word, and powerpoint application are working fine.  
    Environment :  Windows 7 64-bit, MS Office 2013 64-bit
    Steps to recreate
    (i)  Create new user account and add to any group ( do not log on using this
     account)
      (ii)  runas /user:<new user account>  <fullpath>\excel.exe
       it will ask password so enter on command prompt
    (iii)  open any excel document  and click File->Print
      (iv)  verify result  (it is failing) it pop ups below error
     Error:`Microsoft Excel
     No printers are installed. To install a printer click the File tab, and then click
     Print. Click No Printers Installed, and then click Add Printer. Follow the
     instructions in the Add Printer dialog box.                                                                                                               

    Sorry for late reply i was not at work
    I have a default set excel is still throwing error. Interestingly winword , powerpoint and publisher are working fine. I am able to print from all office applications except Excel.
     Probably excel behaves differently from other office applications.
     Probably it is a bug in excel
    Workaround : Log on to a system once using newly created account then runas excel using this account then print works fine.
    It means something in user profile should be configure to run excel print operation. Could you please somebody help what I need to configure in user profile that makes print operation success?

  • "Save As" dialog box is too large

    Recently, while using Acrobat 9, the "Save As" dialog box began opening as a full-screen box.  Is there a way to change it back to a small dialog box?
    Thanks for your help!

    I experience the identical problem with Acrobat Professional ver 8.3.0 on Windows 7 32-bit. The same thing can also happen with the "File > Open" dialog box.
    In both cases, there is a simple solution:  Right Mouse Button in the window's top border to bring up a context menu.  Select "Restore".  The window immediately resizes smaller and can be further resized in the usual way by hovering the mouse over a corner.  To fill the screen again with these dialog boxes, select "Maximize" in the RMB context menu.

  • Can't see psd thumbnails in the open dialog box.

    In the open dialog box, the thumbnails for psd files do not show the picture but show an Elements logo instead.  How can I see picture thumbnails for psd files as I do for jpg files?  I found a dng codec on the web site but not a psd codec.  The dng codec doesn't work for psd files.

    Hi,
    Is there any error message when you try to map network Drive manually? It would be better to provide more details about error message.
    Generally speaking, this problem can be caused by Network Connection problem, please make sure your Client PC could access to Network Drive PC.
    In addition, please check Network Drive PC security setting, if there is any firewall policy prevent this operation.
    If still no use, please check Event Viewer if it identify this problem.
    Roger Lu
    TechNet Community Support
    There is no error.  There is no connectivity problem.  THe drives map automatically and always have.  I can open up File Explorer and browse these drives all I want.  I can open up Word and browse to these drives just fine.
    However, when I open certain programs, and click File | Open, the mapped network drives just simply aren't there.  I only see C and D and that's it.

Maybe you are looking for

  • External drive won't mount; works on all other computers

    I have a WD My Passport Ultra external drive (USB) that is nearly brand new. It mounts / works fine on all other Mac desktops and laptops (older and newer), but won't mount or even show up in Disk Utility on my personal MacBook Pro. I am running OS 1

  • Macbook reboots suddenly when I full screen video

    Hello I am having issues with my Macbook and hope someone can help. My Macbook shuts down and reboots randomly and suddenly under very specific circumstances. The fault only ever occurs either at a random point during full screen playback (this can b

  • Set title color in TitledBorder

    Hi there! i'm new to Java as well as swing. I would like to know how to set the title color of the TitledBorder. By default, the title color is black, I would like to change it to green. i intend to use this constructor: TitledBorder(Border border, S

  • Protected pdfs in preview

    A site is creating protected pdfs. Have to use the acrobat plug in in safari, since it is using a form pdf into which values get inserted. This pdf can be opened in preview, but all the values are wrong. If the document is opened in acrobat, it displ

  • Oracle.DataAccess does not show up in VS 2008 list of data providers

    Hi I have an application which uses VB .Net 3.5 on Win 7 64bit machine with Oracle11gR2 64bit client in the machine. The problem I am facing is that Oracle.DataAccess does not come up under the Data provider drop downs in VS 2008. I have checked that