Dispatching an event while closing a title window

my app requires some data to be refreshed whenever a new data is submitted
the new data is submitted in a form that opens in a seperate title windiw and i want to dispatch some sort of an event or indication which can be listened to in my main program so that data can be refreshed as soon as the window is closed .....
the close event doesnt work because i close my title window manually at the submission of data , without clicking on the close button , ... I tried making a custom event and dispatching but doesnt seem to work out .... I am quite a beginner so please help me out with this ....
thanks a lot

go through these links once:
http://livedocs.adobe.com/flex/3/html/help.html?content=createevents_3.html
http://livedocs.adobe.com/flex/3/html/help.html?content=events_07.html

Similar Messages

  • IFrame(child container) still visible after closing the title window(parent container)

    Hi All ,
    I have created a sample project using a link button which when clicked opens up an TitleWindow which has an iframe and a text area in a hbox
    When you execute the application ,
              Click the link button
              The Popup window opens up showing the title window with the close button
              Click the close button of the title window
              The Title window is removed and the iframe and the text area are not visible
    Do this a couple of times
    You can notice that the iframe is still visible even when the title window is closed
    Can someone explain me how this issue can be resolved and also explain me why the iframe(child container) is still visible when the title window(parent container) is not visible. 
    Main Application file
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
        width="100%" height="100%" creationPolicy="all"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical" creationComplete="init()"
        xmlns:containers="containers.*">
       <mx:Script>
       <![CDATA[
           import mx.managers.PopUpManager;
           import containers.PopUpBrowser;
           public function doRequest():void
                    var requestPopup:PopUpBrowser = PopUpManager.createPopUp(this, PopUpBrowser) as PopUpBrowser;
                    PopUpManager.addPopUp(requestPopup,this);
                    requestPopup.x = 220;
                    requestPopup.y = 50;
       ]]>
       </mx:Script>
       <mx:Text fontSize="14" fontWeight="bold" text="Click the link button below to open the Title Window" />
       <mx:Spacer height="100"/>
       <mx:LinkButton label="Click me" fontSize="16" fontWeight="bold" click="doRequest()"/>
    </mx:Application>
    PopUpBrowser.mxml Component
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow
        xmlns:mx="http://www.adobe.com/2006/mxml"
        close="removeMe()"
        showCloseButton="true"
        styleName="myTitleWindowStyle"
        width="850" height="500"
        title="Klout User Profile"
        paddingTop="1" paddingBottom="1"
        paddingLeft="1" paddingRight="1"
        xmlns:generic="com.serendio.voom.components.generic.*"
        xmlns:flexiframe="http://code.google.com/p/flex-iframe/"
        horizontalScrollPolicy="off"
        verticalScrollPolicy="off" >
        <mx:Script>
            <![CDATA[
                import mx.managers.PopUpManager;
                public function removeMe():void
                    PopUpManager.removePopUp(this);
            ]]>
        </mx:Script>
        <mx:HBox width="100%" height="100%">
        <flexiframe:IFrame source="http://www.google.com" id="iFrame" width="50%" height="100%"/>
        <mx:TextArea text="Open and close the title window few times and watch the iframe remain visible even when the title window is closed"
             fontSize="14" width="50%" height="80%"/>
        </mx:HBox>
    </mx:TitleWindow>
    Thanks,
    Ajantha

    Hey,
    This is working fine for me with the current 4.5 Flex, Firefox 3.6.12, IE8. On what browser you are getting this error.
    Thanks,
    Jayagopal.

  • Error while closing F4 help window

    I have used FM F4IF_INT_TABLE_VALUE_REQUEST, to add F4 help to input element of my screen, but when I try to select a value from the list or close the input help window, the control goes to dump with following error message:
    The program attempted to issue a " " message during "F4" processing.
    This is an illegal operation.
    The program was terminated.
    I am using the following code:
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield               = 'LIFNR'
          dynpprog               = sy-repid
          dynpnr                 = sy-dynnr
          dynprofield            = 'WA_YCT3-LIFNR'
          value_org              = 'S'
        TABLES
          value_tab              = it_lfa1
       EXCEPTIONS
          parameter_error        = 1
         no_values_found        = 2             
         OTHERS                 = 3.
      IF sy-subrc = 1.
        RAISE parameter_error.
      ELSEIF sy-subrc = 2.
        RAISE no_values_found.
      ELSE.
        MESSAGE 'Unknown error occured while processing request' TYPE 'E'.
      ENDIF.
    ENDMODULE.

    Hi Das,
    This time i have tried one code and i am able to get the F4 help for LIFNR field correctly. Copy paste the code and execute it will work....
    data: begin of itab occurs 0,
    lifnr like lfa1-lifnr,
    end of itab.
    DATA : return like ddshretval occurs 0 with header line.
    data: begin of dynpfields occurs 0.
    include structure dynpread.
    data: end of dynpfields.
    parameters: p_lifnr like LFA1-LIFNR.
    Initialization.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_LIFNR.
    REFRESH ITAB.
    SELECT lifnr FROM lfa1 INTO TABLE ITAB.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = 'lifnr'
    dynprofield = 'P_lifnr'
    dynpprog = sy-REPID
    dynpnr = sy-dynnr
    value_org = 'S'
    TABLES
    value_tab = ITAB
    return_tab = return.
    p_lifnr = return-fieldval.
    refresh return.
    clear return.
    Hope my answer helps you.
    Cheers!!

  • Display Do u want save changes or not? message while closing the window

    Hi All,
    I have one requirement.I developed one form that contains 4 windows.
    I entered in the 3rd window and i have made some changes but not saved.when i close 3rd window it is not giving any message like 'Do u want save changes?'after closing the 3rd window cursor will go to 2nd window.if i open 3rd window again it is propmting the message(Do u want save changes or not?).How can i get this message while closing the 3rd window?
    i have written the following code in app_custom body
    IF (wnd = 'WINDOW1') THEN
    app_window.close_first_window;
    ELSIF (wnd = 'WINDOW3') THEN      
    lv_wnd_status := get_window_property('WINDOW2',VISIBLE);
    IF lv_wnd_status = 'TRUE' THEN
         go_item('BLOCK2.ORDER_NUMBER');
         set_window_property ('WINDOW3', visible, property_false);
    ELSE
    app_window.close_first_window;
    END IF;
         ELSIF (wnd = 'WINDOW2')
    THEN
    lv_wnd_status := get_window_property('WINDOW3',VISIBLE);
    IF lv_wnd_status = 'TRUE' THEN
    set_window_property ('WINDOW2', visible, property_false);
    ELSE
    app_window.close_first_window;
    END IF;
         ELSE
    app_window.close_first_window;
    END IF;
    Can anyone give me some idea.
    Thanks in Advance
    Edited by: DhanaSurya on Apr 27, 2010 9:41 PM

    Iis this the only code which you used to hide/display window?
    Might be some navigation is happening in your form. Like if there is relationship between window2 and window3's block and when you access the window2 then you try to move to the next reocrd and then you are try to go to the WINDOW3's block.
    Or there is any CLEAR_BLOCK built-in bieng use in you form.
    -Ammad

  • Itunes wont inport anythig it show listings but comes up with error ocurred while converting (song title ) the required file cannot be found using windows 8

    itunes wont inport anythig it show listings but comes up with error ocurred while converting (song title ) the required file cannot be found using windows 8

    iTunes cannot convert protected WMA tracks. There may also be problems if it can't get full access permissions. What exactly are you trying to do when the error occurs?
    tt2

  • New feature in SP5: Closing a popup window raises an event

    I'm trying to use this new feature that came in SP5, "Popup Enhancement - Closing a popup window raises an event to the containing iView".  Can anyone give me an example of how this works?  In the configure element for the popup, there is a new field called, 'Closure Event'.  I though by adding by event to this new field, that the event will be raised after closing the popup window, but it didn't.  What am I doing wrong?

    Hi,
    you should add an end-point to the popup and/or use the "Close" action.
    there's a difference between when closing the popup implicitly or explicitly

  • Event handling for closing a browser window on portal in web dynpro abap

    Hi,
    I am new to portal as well as web dynpro. Is it possible to handle portal events in web dynpro abap? My requirement is whenever a browser window is closed on portal, if any new system messge has been added I want to display them in a pop-up. I checked examples from the package 'SWDP_TEST' but they trigger events in web dynpro and pass them to portal. I want to subscribe to the close event of portal and handle it in my web dynpro abap application. How can I achieve this? Please suggest.
    Thanks and regards,
    Amrutha

    Amrutha S wrote:
    Is it possible to handle portal events in web dynpro abap? My requirement is whenever a browser window is closed on portal, if any new system messge has been added I want to display them in a pop-up. I checked examples from the package 'SWDP_TEST' but they trigger events in web dynpro and pass them to portal. I want to subscribe to the close event of portal and handle it in my web dynpro abap application. How can I achieve this? Please suggest.
    Hi,
    I dont think that you can code to close IE browser window as you cannot access MS IE APIs in WD ABAP. I looked into closing IE browser and got http://p2p.wrox.com/general-net/16588-handling-ie-close-event.html . reading this, it seems the coding can be done in C#(asp) etc.
    also refer Closing of IE window
    I hope this is useful for you.
    Thanks,
    Chandra

  • What Event is Triggered When a Title Window is Shown?

    I am creating the Title Window Component once, and then
    showing it with PopUpManager.addPopUp, and hiding it with
    PopUpManager.removePopUp. I need to run some logic each time the
    PopUp is shown. However, I can't figure out what Event is triggered
    when the TitleWindow is "opened". The window is there, it's just
    not being displayed. This make me think that "show" would be
    triggered, but it is not. I also tried "add", but this threw a RTE.
    Any thoughts?
    Thanks.

    Since I couldn't find an Event to trigger, I am instead using
    an override of protected function commitProperties() to run my
    logic.

  • ITunes stopped working on windows 8 while closing the application

    while closing itunes it stopped working unexpectedly, i faced this problem for more than couple of times. last time when i tried to debug it using microsoft visual studio I got a result like " Unhandled exception at 0x77D2A94F (ntdll.dll) in iTunes.exe: 0xC0000374: A heap has been corrupted (parameters: 0x77D3E1E8). " what may be the problem? and how can I fix it?

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    It shouldn't really take that long to do, assuming it goes smoothly.
    tt2

  • HELP! Closed Photo Booth window while it was recording...

    So I was recording video with Photo Booth and I accidently closed the window while it was still recording. But when I open up Photo Booth again the video clip is not in there anymore. I was able to find the file that was generated which was in Home>Pictures>Photo Booth. When I try to open up the file that I found it says Quicktime can't open it. Can anybody help me with this because I really want that clip to work.

    You are going to have to re-do the video. Closing a PB window is the same as quiting PB unfortunately.

  • Windows: Intermittent Flash Pro CC Application Freeze while closing documents

    If you notice any intermittent application Freeze of Flash Pro CC while closing the FLA documents, please apply the hotfix provided by Microsoft in the below link:
    http://support.microsoft.com/kb/2619328/en-us
    Issue is specific to Windows 64 bit Flash Pro CC installations.
    Do let us know if you encounter this and if applying the hotfix fixes the issue for you.
    thanks,
    Sujai

    Hi, I've been experiencing this problem.  I followed the link you sent and it goes to a hotfix apparently designed to fix the issue "PowerPoint stops responding or crashes on a tablet computer that is running Windows 7 or Windows Server 2008 R2"
    Is this the correct fix?

  • Is there a way to dispatch or bubble events between two pop-up windows?

    Hi. I was wondering if there is a way to dispatch custom
    events between two or more pop-up windows created using the
    PopUpManager?
    I understand how to pass an event from one pop-up window to
    the main application (or FrontController) by dispatching the event
    from Application.application under Cairngorm 2.0.
    However, as I understand it, that will only bubble the event
    through the Application chain of visual controls and not to the
    other pop-up windows created using the PopUpManager.
    I tried dispatching the event directly from the pop-up window
    itself, but the other pop-ups still does not seem to receive the
    event.
    It would be nice to be able to do this so that each non-modal
    pop-up can have some awareness with each other.
    Thank you very much in advance.

    If you have just 2 pop-ups you can have them each do a
    addEventListener on the other, listening for the event (custom or
    otherwise).
    If you have an unpredicatable number, then you devise
    something else. Suppose you have 3 pop-ups, p1, p2, and p3. Let's
    say you also have 1 custom event, E1. Any of those pop-ups is
    capable of dispatching an E1 event and you want all of them to
    receive it.
    Create a class that extends EventDispatcher and instantiate
    an object of that class. Each pop-up "registers" with that class,
    something like:
    controller.addEventListener( "E1", handler ); where handler
    is a function in the pop-up.
    When a pop-up wants to dispatch an E1 event, it does it
    through the controller: controller.dispatchEvent( new E1(data) );
    This will automatically dispatch that event to all the
    pop-ups, including the one that dispatched the event. So a pop-up
    will have to examine the event to see if it sent it and perhaps
    ignore it.

  • Exit the Browser window while closing the form in ORACLE 10g

    Hai,
    Is it possible to cIose the browser window while closing the form in Oracle 10g.
    I wrote a code EXIT_FORM in a "WHEN BUTTEN PRESSED" TRIGGER and
    web.show_document('javascript:window.close()','_self'); in "POST-FORM" trigger
    But it only closes the form.
    Please help me with the fast & useful responds.
    Bye

    create a file called close.html with the following code
    <html>
    <body onload="closeit()">
    <script>
    function closeit()
    window.close();
    </script>
    </body>
    </html>
    call close.html in post-form like this
    WEB.SHOW_DOCUMENT('/forms90/myhtml/close.html','_self');
    You have to do the directory mapping

  • CLOSING AND SAVING TITLE WINDOW CONTENT

    I'm having a heck of a time finding SAVE or SAVE AS when completing a titling function in the titler window.
    In the old days, and old ways (PPro 1.5), I'd open up titler window and create the following:
    PREMIERE (arial 24 bold, centuer justified, horizontal center, vertical center), then SAVE AS: I'd save it as TXT_PREMIERE.
    I'd then highlight PREMIERE, change the text to PRO, then SAVE AS: I'd save it as TXT_PRO.
    I'd do the same with the third iteration, highlight PRO, change it to ROCKS, then SAVE AS: I'd savit as TXT_ROCKS.
    This way I don't have to change each attribute in titler window, keeping consistency and cutting editing/titling time.
    Withe CS5 titler, I can't find a SAVE or SAVE AS function. It seems to want to have you save the name ahead of time.
    Is there a way I can achieve the OLD WAY with the NEW PRO ?
    expeditonwest

    Back in the "good old days," (talking about Title Deco, etc.), Titles were Saved as Assets. Now, they are included within the XML of the Project. That made life simpler on one end, but now requires a bit of a deviation in the workflow, if one wishes to use those in other Projects. Craig has covered that nicely. It is just a difference in the structure of the Titles now, and where they are stored.
    Do note that your Saved Title will be in PRTL format, and only PrPro and PrE can open those. I have filed Feature Requests for some years for Photoshop, to include that format in supported files, but seems I might be alone in that desire. If one only wishes to use those in other Projects, or only wishes to edit them in PrPro, or PrE, then it's completely moot. The PRTL's will work just fine in those two programs.
    Good luck,
    Hunt

  • Closing an external window

    Hello,
    I would like to close an external window dynamically by calling the method
    lr_myextwin->close( ) when some event occurs.
    This does not seem to work since the opened external window is still open...
    Ofcourse it is possible to manally close the external window, but I would like it to happen dynamically.
    Can any brief me in, if it possible.
    Cheers,
    Gerald

    Hi Jagruti,
       Its possible to close the external window dynamically.What you have to do is , while creating the external window instance, save the instance in the component controller as an attribute .
    Which means create an attribute in the component controller of type IF_WD_WINDOW ( In this case i have created LO_POP_UP ).
      l_cmp_api = wd_comp_controller->wd_get_api( ).
      l_window_manager = l_cmp_api->get_window_manager( ).
       CALL METHOD L_WINDOW_MANAGER->CREATE_WINDOW
         EXPORTING
          MODAL                = ABAP_TRUE
           WINDOW_NAME          = <WINDOWNAME>
          TITLE                =
          CLOSE_BUTTON         = ABAP_TRUE
          BUTTON_KIND          =
          MESSAGE_TYPE         = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
          CLOSE_IN_ANY_CASE    = ABAP_TRUE
          MESSAGE_DISPLAY_MODE =
          DEFAULT_BUTTON       =
         RECEIVING
           WINDOW               = l_final_window
    When you get the instance of the window.Save it in the component controller attribute.
    wd_comp_controller->LO_POP_UP = L_FINAL_WINDOW.
    CALL METHOD L_FINAL_WINDOW->OPEN
    At later point of time , you could get this instance from compenent controller and you can call that in your method whenever and whereever necessary , so that you could close the window in a smooth fashion.
    mywindow = wd_compcontroller->LO_POP_UP
    mywindow.close().
    Thanks
    Anzy.
    mark this thread as closed if this solves your problem.

Maybe you are looking for