2nd Document window not closing

I have 2 Document windows,
- win1 is parent window.
- win2 is a small window with 3 display fields
and 2 buttons OK & Cancel.
- other setting for 'win2' is
Modal = 'YES'
Close Allowed = 'YES'
i have problem with Cancel button code, i am giving
if :SYSTEM.EVENT_WINDOW = 'WIN2' then
GO_ITEM('CTRL.FLD5');
HIDE_Window('WIN2');
end if;
The WIN2 is not closing,
i am calling this 'WIN2' from a WVI trigger of a field on parent window 'win1'
by issuing SHow_WINDOW('win2') command.
but it flashes error FRM-40737: illegal restricted Procedure SET_WINDOW_PROPERTY in WVI trigger.
Any one please suggest. TY.

hi Sarah,
i dont to know to which item's WVI should i atttach this code.
Since the window Closed_Allowed property is set "yes".
the same code given at Form-level When-Widow-Closed, works well, closes the window in 1 click.
but i dont know the same code given for Cancel button, does not close 'win2',
One more point, first time when win2 is shown, that time, out of the [x] button on the status bar &
Cancel button on win2, if i use [x] button first, then 'win2' closes and cursor is back in CTRL.FLD5 on 'win1', fair enough.
then afterwards from CTRL.FLD5 when 'win2' is called again then the Cancel button code works fine just like the [x] button.
but the question is why not first time, if i choose Cancel button first. why it is required [x] button to be used first.
So the problems are;
- FRM-40737 is thrown whenever win2 in invoked from CTRL.FLD5
- 'WIN2' does not close by pressing Cancel button, when displayed first time.

Similar Messages

  • Is it possible to make the document window not to hide behind the palettes?

    Is it possible to make the document window not to hide behind the palettes (layers, paths etc) like in CS5? For instance if I want to make a correction in the right part of the image and zoom in, the window expand under the different palettes and I can no longer see the area which I want to correct without change the document window size. I don't want to use the Photoshop application fram because then I can't see stuff in other applications ID, mail an so on. 

    I have written about how to control various font sizes in Thunderbird here:
    http://www.ramsden.org.uk/9_Type_sizes.html
    Generally, you shouldn't need to zoom; you can pre-set the display of message text.
    To get straight to the point, you should probably try the https://addons.mozilla.org/en-us/thunderbird/addon/theme-font-size-changer/ add-on to address issues with the size of the message list font.

  • Shortcut to switch document windows not working?

    Greetings,
    I'm using CS3 5.0.3 on OS 10.4.11.
    I'm trying to use a shortcut to switch between different open document windows. The documentation says this:
    Switch to next/previous document window
    Command+F6 or Command+~ [tilde]/ Command+Shift+~ [tilde]
    However, none of these options work.
    Any ideas? Thanks in advance!

    Hi,
    I'm not quite sure if it has worked before because I've just recently started using ID more often (finally got Q2ID).
    I tried both of your suggestions, but neither helped.
    So still looking for an answer.... but thanks for the input.

  • Archiving print document and the FICA document is not closed yet

    Hi SAP,
    I Am testing the archiving object ISU_PRDOCL and ISU_PRDOCH and I could archive a print document for which the FICA document is not sold (still Open Item). is it a bug or the standard is made like this or do we have to implement an OSS note for this isue.
    Thanks;
    Best regards
    Raissi Hanane

    Hello,
    Yes, print document will be archived even though corresponding FICA document is still open or outstanding.
    To-over come this problem you can enhance your Print document header and line item archive program to exclude archiving of print document header and line item with corresponding open FICA document.
    SAP has provided enhancement for Print document Archive program :
    Print document headers (ETOAR001)
    Print document line items (ETOAR002)
    Hope this will resolve your issue.
    -Thanks,
    Ajay

  • CS4 document window not showing

    I have been running Indesign CS happily for the past year on a 13" macbook pro with Leopard. I just bought a brand new 15" macbook pro with Snow Leopard. Now if I open a file I need to minimize or expand the window to see a document. Also if I want to have multiple documents open the other tabs are visible at the top but not the window containing the document. I have trashed the preferences several times now. Sometimes it works for a little bit then stops. I really do not want to upgrade to CS5 yet. Any help is much appreciated.

    You have a couple invalid formatted comments on the page which could be causing display issues for your "Title Starts Here" type of comments.  The comment tag is only <!-- Comment Goes Here -->.  I think those extra hyphens "-" might be causing an issue with the Design View and confusing Dreamweaver.  Additionally in your footer, you have 2 open <p> tags but only one closing </p> tag.  That needs to be fixed as well.  It looks like the one around the address portion is missing, copyright seems fine.
    Lastly, you have some CSS errors in that document, but those shouldn't be causing the issue you are describing although they could cause browser issues that you may want to look into.
    http://validator.w3.org/unicorn/

  • 'Run' terminal window not closing

    I have an Java application which I have created an installation package for using InstallAnywhere.
    On Solaris when launching the application using the alias from a terminal window it works fine. But, when I launch the application from the File Manager, by double-clicking, it creates an 'extra' terminal window called 'Run', this terminal window doesn't terminate when I exit my application.
    How can I prevent this, can I prevent the 'Run' window from starting using some sort of setting, or can I somehow make sure it is closed togheter with the application?
    On Linux (SuSE10) the OS asks how I would like to run my application so I don't have the same problem there.

    Hi Kanwalpreet
    For basic idea please refer to the following link
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/dialog%20boxes%20in%20web%20dynpro%20applications.pdf">Dialog Boxes in WebDynpro</a>
    Go Through <b>page 16</b> of the PDF Document
    Regards
    Chaitanya.A

  • Window not closing

    In one of my views i have a button...when i press that a window opens up with a drop down list.......when i select a value from the drop down n press ok it throws an exception....
       com.sap.tc.webdynpro.services.exceptions.WDIllegalArgumentException: Tried to close window ID MPCELLJBfa title Select a Reason, but was not on top of the queue. Top window ID MPCEf7 title Docket Details!
        at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.popModalWindow(ApplicationWindow.java:161)
        at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doClose(WebDynproWindow.java:398)
        at com.sap.tc.webdynpro.clientserver.window.Window.doClose(Window.java:153)
        at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handle(ApplicationWindow.java:270)
        at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handleWindowEvents(ApplicationWindow.java:237
    what cud b the way out...
    null

    Hi Kanwalpreet
    For basic idea please refer to the following link
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/dialog%20boxes%20in%20web%20dynpro%20applications.pdf">Dialog Boxes in WebDynpro</a>
    Go Through <b>page 16</b> of the PDF Document
    Regards
    Chaitanya.A

  • Groups Window not closing like before update 4.3

    After the update to Android 4.3, group windows often don't close after you hit the home button to exit/switch apps.  This behavior is a little annoying.  Is this a bug or working as designed?
    After I switch apps using the home button, I expect the group window I used to launch an app to be closed...I don't expect to press the home button twice.

    If I'm understanding you correctly, I'm experiencing the same thing. It isn't a matter of specific apps, but of the way Android 4.3 now handles folders on Home screens. For instance, I have some folders on my Home screen with quick-dial links. I open the folder, tap a link, and it dials the contact. When I'm done and go back to my Home screen, there the folder is still open. The same thing happens with folders that have apps.
    This is a change made in Android 4.3 in comparison to earlier versions of Android. Many people have commented on this online, most of them as unhappy about it as you and I, kil. (E.g., this post and the ones following it in an Android Central thread.) Unfortunately, there's nothing that can be done about it. Maybe they'll change it back in the next version of Android, maybe not.

  • Windows not closing in safari

    whenever I use safari and try to close a window, the red x button does not work. What can I do? Please HELP ME!!!!!
    ibook g4   Mac OS X (10.4.5)  

    Hi hulkman,
    Have a search of the forums (search box in the top right hand corner of the window) - this issue has been mentioned a few times already so hopefully those posts will tell you how to fix things.

  • About window not closing

    When I go into the about window for Adobe Reader X it shows the relevant paces and I have version 10.1.11. I am then unable to close the window by selecting the red cross and the window just stays. The only way I can close the window is going into to taskmanager and closing the program

    YOUR RIGHT. Worked first time. Thanks
    On Wed, Sep 24, 2014 at 2:43 PM, Pat Willener <[email protected]>

  • Jframe window not closing

    Hi can anyone plz tell me how i will close my jframe window..
    I have a button called EXIT,clicking which i want to close my Frame...
    I am writiing setvisible(false) but thats not working..

    use
    System.exit(0);
    All the best

  • Dialog/Frame window not closing

    I have an instruction dialog that pops up in an application, but if the close (X) is pressed it doesn't close the dialog/Frame.
    Dimension dem = getSize();
                   Frame r = new Frame();                    
                   Dialog d = new Dialog(r);
                   TextArea t = new TextArea("",100,100,TextArea.SCROLLBARS_NONE);
                   t.setBackground(new Color(0,0,102));
                   t.setForeground(Color.white);
                   t.setFont(new Font("Helvetica",6,14));
                   t.append(
                        "Grammar Checking Instructions: "+"\n\n"+
                        " -Use the Lexicon provided to creates a sentence for grammatical"+"\n"+
                        " checking."+"\n"+
                        " -The sentence can be typed in the text field provided or the user can"+"\n"+
                        " load a sentence from a file. (*.txt format)"+"\n"+
                        " -Press the 'Check Sentence' button for the sentence to be analyzed"+"\n\n"+
                        "Grammar Rules: "+"\n\n"+
                        " S -> NP Pred"+"\n"+
                        " Pred -> v NP PP | v PP NP | v NP | v PP | v"+"\n"+
                        " PP -> p NP"+"\n"+
                        " NP -> det. NP* | NP*"+"\n"+
                        " NP* -> adj NP* | n");
                   d.add(t);
                   d.setTitle("Grammar Checking");
                   d.setSize(475,300);
                   d.setLocation(dem.height/2 -140,dem.width/2 -40);
                   d.setResizable(false);
                   d.show();
                   r.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {System.exit(0);}});     
    thanks for the help,
    steve

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test extends JFrame {
      JDialog myDialog;
      public Test() {
        myDialog = new JDialog(this,"Sample Dialog");
        myDialog.setSize(50,50);
        myDialog.getContentPane().add(new JLabel("Hello"));
        JPanel content = (JPanel)getContentPane();
        JButton myButton = new JButton("Dialog");
        content.add(myButton);
        myButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent ae) {
         myDialog.show();
        addWindowListener(new WindowAdapter() {
          public void windowClosed(WindowEvent e) { System.exit(0); }
      public static void main(String[] args) {
        Test test = new Test();
        test.setSize(100,100);
        test.show();
    }

  • My Whole appication gets closed when i exit from Document Window

    I have a MDI Application.
    I have several document windows opened inside that document window.
    Now in one document window i goes in enter query mode. Queries a record. Now when i closes that document my whole application gets closed. In contrary, If i am creating a new record in that window, saves that record or say do not save but quit the document window then my only that document window gets closed. Not the whole application..
    Can u Please Help

    You have to sign into this discussion site with your Apple ID in order to participate. Do you sign in when you are trying to view your responses?
    You should still be able ro read the response, even if not signed in, but you can't respond if not signed in.
    Are you trying to do this with your iPad connected to your PC by any chance? Do I even understand your question correctly?

  • Closing document window inside of the MDI

    We have just one "document" window open inside of the Forms run-time application window. Does anyone know how to close this document window without closing the whole application?
    Thank you very much.

    Bogdan,
    we are trying to close the sole document window we have inside of our MDI application, leaving the application itself open. By comparison, you can leave MS Word application window open without having any document windows in it. I am starting to doubt it's possible at all in Forms. To re-phrase the question, is having at least one document window open at all times a requirement for MDI application?
    Thank you.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Bogdan Dincescu ([email protected]):
    I understand that the one document window is the main window of the form that is curenntly running and that you have one only form running. Closing that window you close that form, so how would the application know any better then closing.
    Please be more specific as to what you really need to do.
    Best wishes,
    BD.<HR></BLOCKQUOTE>
    null

  • Can't open 2 document windows

    When i open more than 1 document, it opens in current document window not a new window. both documents show in window list, so only 1 visible at same time.
    Anyone?
    cs5 just installed, mac os10.6.3

    There's a widget that allows you to choose the layout.
    Bob

Maybe you are looking for

  • What is the best way to resize a book?

    I have InDesign CC and I am designing a culture book for my company. It's about 100 pages and full of pictures, shapes, and text. The book is almost completed, but I just got word today that we are changing the size. The original size was 7x9 and the

  • After updating to Firefox 6, the menubaritems are in English and "History" gives the Bookmarkslibrary

    In my previous version of Firefox (5) i used to have all items in the menubar in Dutch. After updating to version 6, these items are in English and I have not found out how to change that. Furthermore, asking for "History/show all history" brings me

  • IMovie 9.0.4, all export options grayed out.  Have I missed a step?

    I'm still on OS 10.6 so I can't udate iMovie software.  I have a little movie, under 4:00, finished and want to export but all options grayed out.  Have I missed a finishing step or is this just an obsolete software/OS problem?  Thanks.  Chris

  • A working Dashboard suddenly errors out "Error #2032"

    Hi Experts, We have a dashboard which was working completely fine until couple of weeks back, This dashboard is a big one and it pulls in data from 19 different QAAWS. When the user selects his values, the data is shown on different parts of the repo

  • NoSuchElementException with SelectOneListBox

    Ok, so for some reason I'm getting a NoSuchElementException relating to a SelectOneListBox (I think). What I've got is this JSF page: <body>         <f:view>             <h:form id="statReport">             <h:inputHidden id="wpId" value="#{workpacka