How to suppress the Save Dialog before closing the form?

Dear all,
I created a form which will open a data connection on a button click.
I catch the error on failure and code to close my form by app.execMenuItem("Close");
but a Save Dialog will appear before I can close it.
(may be because I have done something on opening the form),
is it able to suppress it? Or simply cannot?
Best Rgds.

but it seems that after event.target.closeDoc(true);
the codes that follow will continue to run,
but this doesn't happen if I use app.execMenuItem("Close");
I already include the closeDoc inside the try catch.

Similar Messages

  • The default name of the document in the Save dialog box in the browser

    I have JSP page which retrieves a document from a database and either displays it in the browser window(if it can be displayed as for pdf or word documents) or offers the user to save it on disk. Everything works fine except for in the latter case in the save document dialog browser offers the user to store the document with jsp page name and extention by default. I store the file name in another field in the database and want to use this name by default. Is there any way to control the name of the document which browser offers by default ?

    Yes, there is a HTTP Header called Content-Disposition you can set the filename with that, here is some code from a JSP I use to download software from a database to the browser.
    response.setContentType(doc.MimeType);
    response.setContentLength(doc.BinaryData.length());
    response.setHeader("Content-Disposition", "filename="+doc.Filename);
    ServletOutputStream stream = response.getOutputStream();
    byte[] data = doc.BinaryData.getBytes();
    for(int i =0;i!=doc.BinaryData.length();i++) {
    stream.write(data);
    Now this all works in every browser except in Microsoft's Internet Explorer browser (ofcourse!) the "Save as" filename then is taken from the last part of the URL that looks like a file name!!! So my URL to the page that has the above code would look like /downloadSoftware.jsp?id=1234&file=somefile.ext and I don't do anything with the file parameter, it's just here for IE. This means all browsers that adhere to the HTTP standard will work and then Internet Exploder will also work...
    Hope that helps

  • MS Word: This file is read-only. To save a copy, click OK, and give the document a new name in the save dialog box.

    This is not a question. I believe I've found a new issue and the fix for it.
    The situation:
    A brand new iMac 27" running Yosemite 10.10.1
    MacMini server running 10.8.5 server.
    The issue:
    Client on iMac trying to work on MS Word documents stored on server was requiring him to save the documents to his desktop and then copy them back to the folder on the server. The exact error message was, "This file is read-only. To save a copy, click OK, and give the document a new name in the save dialog box."
    The issue is unique to this computer in an office of 10 client computers and three servers.
    Attempted fixes:
    Verified that the ".Temporaryitems" folder existed and the permissions were set properly.
    Repaired permissions on the client and the network share.
    Definitive fix:
    By default, Yosemite 10.10.1 uses SMB for connecting file shares. When I overrode the default and switched to AFP protocol, the issue went away.
    I hope this helps someone else.
    Rob

    That was it. What an operating system. It is very helpful to view files you are looking for. But if you have preview on you cannot save files.

  • Cannot save opened tabs before closing the browser

    Cannot save opened tabs before closing the browser. I do not know if there is such a feature (should be), and how to activate it.
    It was very useful with previous version.

    One change in Firefox 4 is to by default stop Firefox displaying the warning message, but it can be turned back on by changing some preferences.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''browser.tabs.warnOnClose''', if its value is set to '''false''', double-click on it to change its value to '''true'''
    # Repeat this for these 3 preferences '''browser.warnOnQuit''', '''browser.warnOnRestart''' and '''browser.showQuitWarning'''
    If you always open the last set of tabs an alternative approach is this:
    # Click the orange Firefox button, then select options to open the options window
    # Go to the General panel
    # Change the setting "When Firefox starts" to "Show my windows and tabs from last time"

  • How do I "save tabs and quit" in this new version of Firefox, as I did in the older version? I want to be able to see the same websites open from the last time I closed the computer.

    In an earlier version of Firefox, when I went to close it, I would get a prompt "save tabs and quit?" that allowed me to see the same websites open from the last time I closed the computer. Where is that feature on the new version of Firefox?

    Firefox 4 and later versions save the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    Use "File > Exit" or "Firefox > Exit" (Mac: "Firefox > Quit Firefox") if you want to restore multiple windows or otherwise have problems with restoring tabs.<br />
    You can use "History > Restore Previous Session" to get the previous session at any time.<br />
    You may need to click the orange/gray Firefox button to see History.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.<br />
    Using the "Show my windows and tabs from last time" setting is a more reliable way to restore session data.
    * [http://kb.mozillazine.org/Menu_differences Firefox/Tools > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • Check Points we should check before closing the shipment

    Hi Guys
    What all the check  points we should check before closing the shipment.
    Thanks in advance
    SAP MM

    No need, the installer uses root and it can do whatever it wants.
    If you later have problems with User Account Permissions, then see #6 here as Disk Utiliy doesn't fix those, nor should the upgrade.
    ..Step by Step to fix your Mac
    You SHOULD clone your present boot drive to a external drive,
    How to clone your boot drive
    this way you can avoid the mega-hassle of returning to a previous OS X version manually like so
    How to revert OS X back from Mavericks

  • Saving all checked menu items before closing the vi (.exe) panel to a file & restoring it later

    Hello all,
    I am using a customized menu bar for my labview application. I need to have a feature to save the context of the entire menu bar before closing the vi and also to restore it  later on reopening. Basically I have given menu items which get "checked" upon user selection. Is there any efficient way to handle this?..Though I have seen an example (under default examples which come with labview) of context saving for controls and indicators, but it is becoming tedious for menu bar as it has a lot of menu items to be saved.
    Please suggest something for this.
    Thanks

    Maintain an array that keeps track of all the menu items that become checked or are changed to a non-default status.  Every time a menu gets changed, add that to the array.  Anytime that a menu gets set back to the default value, search the array and delete that item from it.
    Now when your program closes, you have an array of everything that is non-default.  Write that out to a file.  When your program restarts, load that file and change all the menu times listed to match.

  • How to popup a prompt dialog when closing IE?

    Hello,every one
    How to popup a prompt dialog when closing IE by clicking the "Cross"(close) of the left-up corner?
    can you give me any suggestions?
    Thnak you!
    zhongboqing

    hi,everyone,
    I am wrong. It should be:
    How to popup a prompt dialog when closing IE by clicking the "Cross"(close) of the right-up corner?
    thank you!

  • How do you put Save as back in the File menu?

    I know under File the "save as" is gone. I also know that if you push the option key it will show up under the File menu until you take your finger off the option key. What I want to know is how can you get the "save as" back under the file menu without pushing another key. I had someone tell me how to do it in Mavericks but I can't seem to remember how he told me to do it. I appreciate any help here!
    I'm on a 13" MacBook Pro with Retina and running Yosemite.
    Thanks

    You can try this or do a Google search to find alternatives.

  • How to disable the reminding dialog when close the webi report viewer

    Dear all
    How to disable the reminding dialog when close the webi report viewer
    Background
    When user close the webi report viewer in inforview by click the button in the right-top of the webi report viewer frame. It always prompt a dialog to remind user that the modification will be lost without saving.
    But customer need to disable this dialog, and can clost the report viewer directly.
    So is there any ways to modify this?
    I think it shoule modify some .js file under tomcat, but can not find the solution.
    Thanks a lot, any information woulde be appreciated.
    David Zhang

    I've had the same issue bugging me since installing Snow, er, lion, er, cat, er, cougar, er, Mountain Lion. Incredibly ANNOYING.
    It's stupid stuff like this and reverse scrolling that really turn long-timer users off. I'm personally glad Forstall got fired for blunders such as these.
    I'm serious peeved that turning off iCloud Documents & Data actually deletes documents and data locally. That's just incredibly stupid.
    MANY thanks mende1 for the answer on how to fix it.

  • How can we write the code for opening the command prompt and closing the

    how can we write the code in java for opening the command prompt and closing the cmd prompt from eclipse (cmd prompt should close when click on the turminate button in eclipse)

    rakeshsikha wrote:
    how can we write the code for opening the command prompt and closing theBy typing in Eclipse (which you seemingly have)?

  • How to create a Child Window without closing the parent Window

    Hi All,
    I have a requirement to create a child window without closing the parent window. I have to click an item in the parent window, then one child window should get open. The parent window should not be closed before closing the child window.
    Kindly help me in this.
    Thanks and Regards,
    Myvizhi

    Hi All,
    I found the solution for this. I have created a new page. Then i created an item as link item style in the parent page and i have set the following properties in the Link item:
    Destination URI : OA.jsp?page=/seagate/oracle/apps/seasoa/que/webui/SeaSoaHeaderDetailPG&headerId={@ErrHeaderId}&retainAM=Y&addBreadCrumb=Y&backPage=S
    Target Frame     : _blank
    This is opening the new child window without closing the parent window.
    Thanks and Regards,
    Myvizhi

  • Report execute time nd how many records will be returned before hitting the "run" option?

    Post Author: Prasad15
    CA Forum: WebIntelligence Reporting
    Is there any way to know how long the report executes and how many records will be returned before hitting the "run" option?
    Regards
    Prasad

    To know if the report is going to return more than 10,000 records, you first have to run the query with a 'select count(1) from ... where ...' (with the same from and where clauses as you normal query). Since this takes about the same time as runnng your report, I wonder if you really gain anything (although formatting may take some time too).
    You may simplify the select count(1) query by omitting all the lookup tables that are only needed for formatting. That way your query may run a lot faster. You can put this in your after parameter form trigger.

  • When I open the "Save Page As" window, the drop-down box for the file name shows files that were saved long ago. This is not cleared by any "clear history" function that I can find. How do I clear this?

    # Question
    When I open the "Save Page As" window, the drop-down box for the file name shows files that were saved long ago. This is not cleared by any "clear history" function that I can find. How do I clear this?

    Hello.
    I believe this is a Windows related issue, since it's the windows Save File manager we're talking about here (right?). You should contact Microsoft for help on that one, I believe. You'd expect to be able to delete the entries by simply tapping ''Delete'' on your keyboard when they are focused (that's how it goes for deleting specific form autocomplete entries in Firefox), but I haven't tried that.
    I'm sorry I can't be of more help.

  • When I restart the browser, its not opening the previously opened tabs even though I saved before closing the browser. Pls guide me.

    Dear sir,
    When I restart the browser, its not opening the previously opened tabs even though I saved before closing the browser. This problem was not there in the older versions less than 3.6.8. Even the browser speed has gone down. This is everyday problem with this browser.
    Pls suggest ASAP.
    Thanks & Regards,
    Tripad

    See this article for some suggestions: [[Firefox has just updated tab shows each time you start Firefox]]
    See also http://kb.mozillazine.org/Preferences_not_saved and Preferences are not saved

Maybe you are looking for

  • Parallel (same) background jobs:  Memory and locking issues

    <b>Scenerio:</b>  Multiple concurrent inbound asynchronous XI messages need to be processed in SAP.  We have the XI proxy initiating an RFC. This RFC exports internal tables (essentially the XI payload) to a unique shared memory ID (for each XI messa

  • How can i get iphoto to show the albums i have so i can download just one album

    I recently have gotten a macbook and i need to free up some space on my iphone. I have an album that i would like to import without importing my camera roll. How do i do that?

  • Can i use two model

    hi can i use two Adaptive RFC model in same webdynpro application.(JAVA)

  • File Info in Smart Preview

    We have standard XMP files with metadata for our collections - box number, folder number, copyright, creator, etc. Is there a way to add this to Smart Preview so that it will apply it to all photos at the same time? It would save so much time to be a

  • New Page in NR19 transaction

    In alv list display of the NR19 transaction, how to trigger new page automatically depending of the order type. By example: a new page every time that change the attending physician.