Prevent customer from closing from

Hi all,
I have to prevent the customer from closing a form depending on a value i want to check.
It is not only closing the distinct form but also he may not be allowed to close forms runtime.
How can I do this?
Forms 6i, Oracle 9i
Thanks,
Silke

Silke,
try a key-exit trigger on the Forms level. Use exit_form in this trigger to leave a form, don't do antyhing - or raise an alert - if the user shouldn't leave the form.
However, once this application should be moved to the Web there will be an issue that you cannot handle gracefully.
It's when the user closes the Browser Window to close Forms (this is similar to killing the runtime engine process in client/server). In this case all uncommited changes get lost.
Frank

Similar Messages

  • Prevent Ctrl-W from closing Full Acrobat Search window

    When I do a Full Acorbat Search on a folder tree, it can take quite some time for all the hits to be found, and quite some time to work through the hits.  Usually, multiple PDF files are opened as I work through the hits.  As I close the PDFs with ctrl-W, it is very easy to accidentally close the Full Acrobat Search window, which means waiting forever to re-do the search and find my way to my current spot in the list of hits.  I find it highly inappropriate for ctrl-W to close the Full Acrobat Search window in the same way that it closes PDF files.  It is especially risky in Windows 7, where the window frames are translucent and the window with the focus is highlighted in a way that makes it very difficult to distinguish from the windows without the focus.
    Is there a way to prevent ctrl-W from closing the Full Acrobat Search window?  I am using Acrobat Professional 8.

    Thanks, Dave.
    I'm finding other inconsistent behaviour that is exacerbating the problem. If I close the last PDF file with ctrl-W, the search window stays open.  If I close the last PDF file from the task bar, boom, the search window gets clobbered too, which entails another lengthy re-search.

  • Preventing a pop-up from closing

    Hi All,
    I've written a pop-up with an input box. I'd like to prevent the  pop-up from closing if the user hasn't entered anything in the input box.
    I open the popup from one view via the code:
      DATA: l_cmp_api           TYPE REF TO if_wd_component,
            l_window_manager    TYPE REF TO if_wd_window_manager.
      l_cmp_api           = wd_comp_controller->wd_get_api( ).
      l_window_manager    = l_cmp_api->get_window_manager( ).
      IF wd_this->m_add_popup IS INITIAL.
        wd_this->m_add_popup = l_window_manager->create_window(
                 window_name  = 'ADDWINDOW'
                 button_kind  = if_wd_window=>co_buttons_okcancel
                 message_type = if_wd_window=>co_msg_type_information ).
      ENDIF.
      lo_api = wd_this->wd_get_api( ).
      wd_this->m_add_popup->subscribe_to_button_event(
      button = if_wd_window=>co_button_ok
      action_name = 'OK'
      action_view = lo_api
      is_default_button = abap_true ).
      wd_this->m_add_popup->open( ).
    I have tried putting validation in the WDDOBEFOREACTION method in the ADDVIEW.E.g.
        l_current_controller ?= wd_this->wd_get_api( ).
        CALL METHOD l_current_controller->get_message_manager
          RECEIVING
            message_manager = l_message_manager.
    CALL METHOD l_message_manager->report_fatal_error_message
    EXPORTING
        message_text             = 'Error - Please enter a quantity and date'.
    exit.
    If I write out a message via the message manager, it appears in the calling view, not the popup. Regardless of what I do, the pop-up always seems to close.
    Can you help?
    Cheers
    Richard

    Hello Richard,
    you have to set:
    window  type ref to if_wd_window.
    wd_this->window->set_close_in_any_case( abap_false ).
    where you open the popup window.
    Now the popup only closes when you call the close method of IF_WD_WINDOW. So you can make your validation and close the popup window only when the entries are ok.
    Regards,
    Rainer

  • Prevent pencil tool from closing paths in illustrator cc

    How do I prevent for the pencil tool from closing my path when I'm drawing. It used to be that you hold the option key to make it close a path. But now it closes the path automatically and it's very annoying because I don't want all the paths to close. For example, if you are drawing a small semi circle, the tool as soon as it feels it's close to the beginning  point it will close it automatically. I'm trying to find and option or a button to press to prevent it from doing this.

    Hey Kris thanks for your reply, but the semi circle example was just to illustrate the problem.  I use the pencil to sketch a lot, so it's not necessarily semi circles but any object, doodle or whatever you are drawing. As soon as you get close to your starting point, illustrator feels the need to close that path. Wether I want to close it or not. I think you just pointed out the big issue here. Now, since it's decided to close a path, I have to add extra steps to get what I want. And if you are drawing many, many similar objects, it becomes impossible to use.
    Ascotto: That is also my point. The Pencil preference panel didn't change much from the previous versions except for the "Option toggles to Smooth Tool", which, by the way, thank you Adobe, for including that. Because as much as I like the new strait line feature, I also like to smooth and edit my selected paths with the option key a lot. So why didn't they include a turn OFF Close Paths option?

  • Problem in preventing Joptionpane from closing??

    Hi all,
    I am using Joptionpane in which i am having 3 optional buttons
    clicking on one of these buttons, i should pop up another dialog with optionpane being alive(i.e. not closed). Here the problem is that as soon as i click on one of the buttons in the option pane, it is automatically gets closed.How can i prevent it from closing.It should be closed only after the popped up Dialog is closed..(like modal property)
    How can i do this..
    help me pls..

    Im not exactly a swing expert, and i dont know if thers a way to prevent a JOptionPane from closing, but you could just use a JFrame to display your dialogue.

  • Mx.core.Window - prevent user from closing the window?

    Hi,
    mx.core.Window has properties 'maximizable' &
    'minimizable', but there doesn't seem to be any 'closable'
    property. In my application I'm creating another window (apart from
    the main application window) that needs to be open the whole time
    the application is running. If I can't prevent the user from
    closing the window, then I'll have to rig up some code to
    automatically re-open it if the user closes it. I'm hoping there's
    a way to prevent the user from closing the window in the first
    place though.
    I'll much appreciate any ideas - thanks :)

    Listen for the window's closing event and call
    preventDefault().

  • How to stop custom Messagebox from closing in windows phone 8?

    i have two redio button(rb1 and rb) and a text box in custom messagebox and i want to stop custom messagebox
    from closing if any option is not selected
    box.Dismissed += (s, e1) =>
    if (e1.Result == CustomMessageBoxResult.LeftButton)
    if(rb.IsChecked.Value)
    else if(rb1.IsChecked.Value)
    else
    MessageBox.Show("Please Select the Option");
    // I WANT TO STOP CLOSING CUSTOMBOX HERE IF ANY OPTION IS NOT SELECTED

    Hi sk pandya,
    Nice to see your shared solution. :)
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Prevent Someone from closing window

    I am currently filling out a form on safari and there is no option to save my work so I will have to leave it up on the screen all day. My younger sibling use the computer too and have already accidentally closed it and have started over 2 times. Is there a way I can prevent someone from closing the window or lock it in any way????

    Hi
    Welcome to Apple Discussions
    No way to lock-in a window, however, if you have administrative control of the system, you can set up a separate user account for others (System Preferences>Accounts). This way, only you have access to your files etc. in your User Account, while affording others the same in their user account.

  • Prevent Find and Replace from closing after clicking "Replace All"

    With the latest release of Dreamweaver CC (2014.1.1), there's been a minor change to the way Find and Replace works. I use Find and Replace a lot to clean up and delete code, so I might do many searches in a row to get things tidy. With the new version however, the Find and Replace window always closes after clicking "Replace All", which is very cumbersome. I need to open it up again, and it doesn't remember the text I entered to use as a replacement.
    Does anyone know if there's a way to prevent this window from closing after doing a Replace All? The previous version of Dreamweaver would keep it open and remember the text either until I changed it or I closed Find and Replace myself.
    Any pointers that would get me a little closer to the previous version's functionality would be appreciated!

    You need to do a find/change for each code individually, but it should be scriptable to take the .csv file and use it to load the find and change values. I'd try asking this over in the scripting forum: InDesign Scripting

  • How to prevent popup dialog from closing when commandbutton clicked

    Hi,
    I have a af:commandButton inside a popup dialog and the button action calls a method in backing bean. When this button is clicked I would like to run the method in backing bean and return control to the popup window. The method seem to run fine but the popup dialog closes automatically. Is there a way to prevent popup dialog from closing for this action?
    Thank you
    Kevin

    Hi Frank,
    Thanks for the link. I am not sure how to use this in my case. Following is part of what I am trying
    <af:popup ...>
    <af:dialog>
    <af:form usesUpload="true">
    <af:inputFile ..../>
    <af:commandButton text="upload" action="#{backingbean.uploadAction}"/>
    <af:outputText value="#{backingbean.filename} was successfully uploaded"/>
    </af:form>
    </af:dialog>
    </af:popup>
    When user clicks upload button I want to display a message that the file was successfully uploaded and keep the popup window open. But what happens now is once the file upload completes, the popup window closes automatically. This file upload part is not a must, user could skip doing the upload and instead input some text in a text area below (not shown in the code above). User could also just click cancel and exit the popup any time, so there is no mandatory field that I could check before closing the popup. Is there something I could do for this?
    thanks
    Edited by: user10720929 on Dec 23, 2008 10:36 PM

  • Prevent user from closing the applications

    Hello,
    we would like to deploy to our users web application using Internet Explorer which is published over RemoteApps. Because this application takes long time to load we would like to prevent user from closing application. So we would like that session and application
    stays opened when the user clicks on close button on Internet Explorer that is published over RemoteApps.
    In other words, we would like to disconnect client from RemoteApp session, but stay logged in and keep the application running in the background.
    Is this possible to do?
    Thank you!
    Best wishes,
    Marko

    Hello,
    thank you all for your answer. I guess this is not a good news. Any other idea how to solve this problem - to start Internet Explorer web application as soon as possible.
    Last week I have found a VB script on one forum that would close the RemoteApp Windows without closing the appliaction on server but I can't find it today. Does anybody know something about this script?
    Thank you!
    Best wishes,
    Marko

  • Tdms-files: Is it possible to prevent LabVIEW and DIAdem from creating .tdms_index files?

    Hello,
    is it possible to prevent LabVIEW and DIAdem from creating .tdms_index files when opening/creating/editing a .tdms file?
    I think I have no benefit from the .tdms_index files because our applications create a lot of little .tdms-files (repeat measurements). With the additional .tdms_index files we have unnecessary memory consumption and it takes longer for Windows to open the containing folder. Also it´s confusing when searching for a certain file.
    Best Regards
    Daniel
    Solved!
    Go to Solution.

    Hi Baui,
    I'm afraid there's a direct way to disable creating .tdms_index file now from LabVIEW and DIAdem. You can use TDMS Advacend API in LabVIEW, which doesn't create any index file, or you can just make some simple programming and delete the .tdms_index file after closing the TDMS file. 
    This is a request for a long time, we'll consider to add this feature for TDMS in future releases.
    Yongqing Ye
    NI R&D

  • How to stop frame from closing in windowClosing event ?

    I have an application which will download some files from the web.
    If the user attempts to close the applicaiton and if some files donwload action is in progress then i need to warn the user and prevent the window from closing. This is what i have done. But what happens is message box is displayed and my window is getting closed. How to get rid of this ? need your help...
    frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent we) {
                        if(DownloaderGUI.tableModel.isSomeThingDownloading()) {
                             JOptionPane.showMessageDialog(null,"cannot close when something is downloading");
                             return;
                        System.out.print("closing..");
                        backEndThread.setCanQuit(true);
                        cleanUp();
                        System.exit(0);
              });

    I have also done a similar things but still window is getting closed.
    public void actionPerformed(...)
    if(!canquit) {
          return;
    } else {
          System.exit(0);
    }Message was edited by:
    chaos_begins_here

  • Import custom Key Commands from InDesign CS6 to InDesign CC

    How can I import my custom Key Commands from InDesign CS6 to InDesign CC?

    [Moving the thread to the InDesign Forum]
    While the best practice is to recreate any customizations you made from previous versions to the new version to prevent any hiccups, you can certainly try copying the .indk file from the V8 (InDesign CS6) folder to the V9 (CC) folder.
    Launch InDesign CS6, Edit > Keyboard Shortcuts > create a new set with all your custom keyboard shortcuts
    Launch InDesign CC, Edit > Keyboard Shortcuts > create a new set with the same set name as existed in CS6 but make no modifications
    Locate and copy the [set name].indk file in version 8 and replace it in version 9
    Repeat the above step for any custom sets you made
    Here's the path to locate the .indk file
    Windows Vista and Windows 7 & 8
    Users\[username]\AppData\Roaming\Adobe\InDesign\[Version]\[Language]\InDesign Shortcut Sets
    Mac OS
    Users/[username]/Library/Preferences/Adobe InDesign/[version]/[language]/InDesign Shortcut Sets
    Please take a look here for more info: http://help.adobe.com/en_US/indesign/cs/using/WS668BC5E2-1E1A-4e75-A69A-44A787B4A5FAa.html #WS57E36B38-B2EB-4255-BAB5-19CCCB4319BFa
    Try it out and let us know if this helps. Thanks!

  • What can prevent a hard refresh from completing?

    I'm running Firefox 14 on a 64-bit Windows machine. According to everything I've read, I should be able to do a hard refresh using CTRL-F5 or the refresh button on the top of the window.
    When working on a website, for example, I'll update something then want to see how it looks. Doing a CTRL-F5 does nothing.
    I'm a recent convert to Firefox. Now I must have IE open to see changes since the hard refresh works on IE, but I work using Firefox.
    The only thing I can think of is that there is some setting that is preventing the hard refresh from working.
    And, please don't ask me to clear cache and cookies. I've got so many passwords remembered on this thing, it would slow me down considerably to look each one up as I need them.
    Given all that, any ideas on how to fix this?
    Thanks in advance.

    Maybe temporarily switch to Private Browsing mode and possibly clear the memory cache.
    *https://support.mozilla.org/kb/Private+Browsing
    In PB mode Firefox doesn't use the disk cache and the cookies from regular mode.
    You can set the browser.privatebrowsing.keep_current_session pref to true on the about:config page to prevent closing the current session.
    * https://wiki.mozilla.org/Firefox3.1/PrivateBrowsing/SecurityReview#Configuration
    *http://kb.mozillazine.org/about:config

Maybe you are looking for

  • Upgrade web link from Acrobat X to Acrobat XI broken

    Upgrade web link from Acrobat X to Acrobat XI broken

  • Oracle performance problem -

    We are facing some critical performance problems with one of the tables. I have a table with the schema given below.When there are around 2 lakh entries in this table, if I give a select count (*) , it takes around 20 seconds to return the count. Whe

  • Address Book problems on iMac & Desktop & Palmtop - **Please Help**

    I had the sync working fine yesterday: Mark/space with Tunsgsten T/X Everything working fine and what folloewed only occured with address book. My palmtop address books synched with the desktop - which then synched with iMac and all was sweet. Then I

  • Update 9.4.3 issues with app store

    So I have updated to the new 9.4.3 iPhoto 4 times since it's release, and every day the app store tells me that I need to update iPhoto 9.4.3 to iPhoto 9.4.3.  Is there a reason why app store keeps telling me I have  new update available even though

  • What exactly affects push notifications?

    So basically here is my "issue", unless it's the same for everyone: What would happen is every, oh let's say 10 minutes whenever someone would text me I would almost immediately get notified of it. And then all of a sudden push notifications stop wor