Event triggered when a popup closes

Hello All,
I have a WD4A application. On one view(SECOND_VIEW) of a window(MAIN_WINDOW), there is a button. When the user clicks this button, a popup window displays.
Now what i want is that when the popup closes, the previous view(second_view) does some action.
So the question is how do i find out if the popup window has closed? I am able to close it, but how to inform the view that called it, that it is closed.
P.S. The popup view is in a different window.

HI Mithun,
I had a similar requirement for which i used cross component programming technique. I am using the SUBSCRIBE TO BUTTON EVENT in the WDDOINT method of popup window to register an event handler to it's OK button.
  lo_window->subscribe_to_button_event(
               button            = if_wd_window=>co_button_OK
               button_text       = 'Select DOC NR.'
               action_name       = 'SELECT'
               action_view       = l_api
               is_default_button = abap_true ).
I have created a method TRIGGER_EVENT_NAV in COMPONENTCONTROLLER .In my event handle in popup windowr (action 'SELECT' in my case) i am calling the previously mentioned compcontoller method (TRIGGER_EVENT_NAV) by using this statement WD_COMP_CONTROLLER->TRIGGER_EVENT_NAV( ).
Now create an event in your COMPONENTCONTROLLER ( eg. OP_SECOND_WDW  - this acts as your outbound plug ) and create a corresponding inbound plug in SECOND WINDOW ( IN_SECOND_WDW ). register this inbound plug (IN_SECOND_WDW) to event of component controller (OP_SECOND_WDW ).
use this statement
wd_this->fire_OP_SECOND_WDW_evt
in the method TRIGGER_EVENT_NAV to trigger the event OP_SECOND_WDW from component controller. This event in  turn triggerrs the inbound  plug IN_SECOND_WDW of second window.
Further naviagtion within the window is the normal INBOUND - OUTBOUND plug navigation.
Let me know if you need any further input on this issue.
Thanks,
Vivek
Edited by: Vivek Priyadarshi on Sep 29, 2010 4:45 PM

Similar Messages

  • Event Triggered when a Report is generated

    Hi ,
    When we execute a report is there a trigger which captures this event. I need to execute an APD once the report is executed.
    Could you please give me the name of the event when a report is generated?

    Thanks for the quick response.
    I have tried with POST-FORM event. But it is not working for me.
    Ihave defined a seq 10 with
    a) Condition
    Trigger Event = WHEN-NEW-FORM-INSTANCE
    b) Action
    Type = Builtin
    Builtin Type = Forms_DDL
    Argument = Script for creating a trigger
    I have created another seq 20 with
    a) Condition
    Trigger Event = WHEN-FORM-NAVIGATE
    b) Action
    Type = Builtin
    Builtin Type = Forms_DDL
    Argument = scritpt to disable the trigger
    When form is opened, trigger is getting created.
    But when the user closes the form, it is not disabling the trigger. User closes the form by clicking on 'X' on the window.
    As per your suggesion , I have changed the trigger event to POST-FORM in seq20. It is not working.
    I have tried with WHEN-WINDOW-CLOSED event also.
    Please help me in this.

  • Any event triggered when deletion happens

    Hi guys,
    I wonder is there any way how to handle following scenario:
    We have custom BO which has association to Activity BO.
    User deletes Activity's instance and here I want that my custom BO's instance would be deleted together with this activity, as we have 1:1 relationship between Activity BO and mine custom BO.
    As I know, than none of events on activity could be triggered when row from Activity's OWL is removed, right? As possible work around I see MDR usage on my custom BO, but it won't be real time check if my custom BO instance still has association to activity. So another thought what I had, but I couldn't find the way how to get it working, is there any chance to trigger on my custom BOs OWL any actions (mass enabled action which checks if my instances has set association to activity)?
    Thanks,
    Uldis

    In case of an internal communication used, you would not receive a delete event.
    The backend would delete your custom object.
    Explained simple, internal communication creates, updates and deletes instances of objects (the destination object) based on modifications of a source object asynchronously in the background (you can define additional conditions when to create, update or delete).
    So you might use it to create and delete instances of your custom object.
    The approach using internal communication is just a suggestion and might not be what you need.

  • "Presave" Event triggered when the form is loaded.

    Dear all,
    I created an interactive form with an XML interface and I use it into a Web Dynpro ABAP.
    The version of my Adobe LiveCycle Designer is 8.0.
    My problem is that the "presave" event is triggered when the form is loaded.
    For example, if I place a field in the form and add the script " this.rawValue = "123"; " to the "presave" event of this field, the field will have the value "123" when I launch the Web Dynpro application.
    Then, if the user does not make any input and directly save the form, the "presave" event is not triggered.
    Does anyone know why I get such a behavior?

    Steeven, I was unable to test this scenario as Adobe Credentials are not installed in my system. But something similar from Java Script is referenced here in the below mentioned link.
    Please look if you find it useful:
    http://careerabap.blogspot.ca/2011/02/custom-dialog-box-message-while-saving.html
    Please reward if you find it useful.
    Regards,
    Nitin.

  • Events triggered when the cross on the top-right corner is tapped

    Hi all,
    I am writing a program for Pocket PC using Personal Profile. I am trying to use WindowListener to make my program do something when the cross on the top-right corner of a frame is tapped. However, neither windowClosing nor windowClosed is triggered. Could anyone give me some hints about doing something when the cross on the top-right corner is tapped?
    Thanks,
    Jokeshing

    the answe to this is to use the windowIconified event. This is what is actually trigged when the X is pressed.

  • (FP Bug?) - Mc's/Sprite's events triggered when mouse leaves SWF area

    Hi guys,
    I wonder if somebody had a similar problem and can help out. I have a button on y=0 (may be either Movieclip or Sprite) with two events: ROLL_OVER and ROLL_OUT. Now when the mouse pointer leaves the SWF area, both of these events get triggered, even if the button is not hovered at all. There is no MOUSE_LEAVE event defined nor anything like that (see the code below). I realized that changing the y position of the button helps, strangely small numbers don't - if I set y=1 the bug still occurs, but y=20 solves the problem. What the hell? This happens only in Firefox on Mac, Safari seems to work alright. (FF 5.0.1 and 6 tested, on OSX 10.6.8 and 10.7)
    I uploaded a video to youtube in case somebody would be interested of seeing this from Windows (where I assume this doesn't happen, but cannot test at the moment - please leave feedback if you could - http://www.youtube.com/watch?v=YKWl50v_MIo - first 10 seconds are kinda crappy, sorry)
    Is this a Flash Player bug or am I missing something really badly here? Thanks!
    package {
        import flash.display.Sprite;
        import flash.display.Stage;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.display.MovieClip;
        import flash.text.TextField;
        public class Main extends Sprite {
            private var field:TextField;
            public function Main() {
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
                //Set up the textfield
                field = new TextField();
                field.x = 200;
                field.y = 200;
                field.border = true;
                field.width = 200;
                field.height = 100;
                field.wordWrap = true;
                addChild(field);
                //Create and set up the MovieClip or Sprite - the MovieClip/Sprite must have content,
                //cannot be empty, otherwise the bug doesn't appear!
                var b:MovieClip = new MovieClip();
                b.graphics.beginFill(0xCCCCCC);
                b.graphics.drawRect(0, 0, 50, 50);
                b.graphics.endFill();
                addChild(b);
                b.y = 0;
                b.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
                b.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
            private function rollOverHandler(e:MouseEvent):void {
                field.appendText("Over"+new Date().getTime()+"\n");
                field.scrollV = field.maxScrollV;
            private function rollOutHandler(e:MouseEvent):void {
                field.appendText("Out"+new Date().getTime()+"\n");
                field.scrollV = field.maxScrollV;

    Yep, strange thing. I filed a report so feel free to vote. https://bugbase.adobe.com/index.cfm?event=bug&id=2944625

  • Re: AfterValueChange event triggered when it shouldn'tbe

    <[email protected]>
    Hi there,
    I'm hoping that someone out there has experienced the following (and
    knows why it is happening. ) :-)
    I have a couple of windows on which the AfterValueChange event is
    triggered on a field upon hitting the delete key.
    We all know that this should only happen upon leaving the field, ie. the
    field loosing focus. The problem is that I'm trying to recreate this in
    a simple test class, but now it won't happen. I still have the original
    windows on which it is happening, but I would like to construct
    something small and simple to send to Forte.
    Any ideas as to why this could be happening?
    Many thanks in advance.
    JacoIs the "Validate on KeyStroke" property turned on for the widget in the
    original window? I believe the AfterValueChange gets triggered every
    time you hit a key if it is.
    I can't think of anything else, off the top of my head. I haven't had my 1st
    pot of coffee yet....
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hello Jaco,
    i could not reproduce the problem you have. The best way for a help in your
    case is a little sample which may be modified by others (forte-users).
    Please attach your PEX-Code in your next reply and describe it.
    I'am absolutly sure that we are able to give an helpfull answer.
    One question forward: 'Do you use the FunktionKey-Event in your Window(s)?'
    Sorry, but no other way exists to resolve your problem (We/I'am too far,
    for making a visit :-) ).
    At 08:14 09.10.98 GMT, you wrote:
    <[email protected]>
    Hi there,
    I'm hoping that someone out there has experienced the following (and
    knows why it is happening. ) :-)
    I have a couple of windows on which the AfterValueChange event is
    triggered on a field upon hitting the delete key.
    We all know that this should only happen upon leaving the field, ie. the
    field loosing focus. The problem is that I'm trying to recreate this in
    a simple test class, but now it won't happen. I still have the original
    windows on which it is happening, but I would like to construct
    something small and simple to send to Forte.
    Any ideas as to why this could be happening?
    Many thanks in advance.
    Jaco

  • Any event triggered when SM35 session completed?

    Hi Guys.
    I wanted to know if there is an event that is triggered after a batch input session has been processed? We want to do something as soon as the batch input sessions are completed - may be something like sending mails to users etc.
    I know we can make a separate program that can check system tables to see the status of the session. But I remember reading somewhere sometime that a batch input session's completion triggers an event.
    Please advice.
    Thanks in adv.

    You can use FUNCTION RS_SEND_MAIL_FOR_SPOOLLIST If UNIX is being used,
    you may send a report to any internet mail with the following:
    REPORT ZSNDMAIL.
    DATA: COMND (200) type c.
    DATA: RESULT (200) type c.
    PARAMETERS: FILE (60) type c lower case default '/sapdata/sd_outbound/testmail.dat'.
    PARAMETERS: SUBJECT (60) type c lower case.
    PARAMETERS: EMAIL (60) type c lower case.
    INITIALIZATION.
    TRANSLATE EMAIL TO LOWER CASE.
    START-OF-SELECTION.
    TRANSLATE EMAIL TO LOWER CASE.
    CONCATENATE 'cat' FILE '| elm -s "' subject '"' email into comnd seperated by space.
    CALL 'SYSTEM' ID 'COMMAND' FIELD comnd 'TAB' FIELD UNIX_RESULTS-SYS.
    Loop at Results.
    write: /1 results.
    endloop .
    end-of-selection.

  • Event triggered for checkbox in cl_gui_alv_grid

    Hi All ,
    I have a requirement like ,i give PO number on selection-screen.After execution, the items should be displayed on second screen ,which has some options on the top like before GR or after GR .(custom screen designed with cl_gui_alv_grid for display)
    I desgined checkboxes for each row of the line item.user can click on multiple rows and click on EXECUTE button on the screen.After that smartform should trigger and print .
    Now my query is how to capture the checkboxes which the user has entered (thru cl_gui_alv_grid) . Is there any event that gets triggered upon clicking the checkboxes?? I need the data of the corresponding row to process further .User can click on multiple items.
    Please respond
    Thanks

    Hi Hemanth
    You should have a field in your internal table matching the checkbox column in ALV.
    Call method CHECK_CHANGED_DATA of CL_GUI_ALV_GRID on user command for execute button,
    it will set the field  = 'X' for ticked lines in your internal table.
    Then use a loop on your internal table and find selected lines.
    You don't need an event triggered when user clicks.
    Edited by: Bulent Balci on Aug 3, 2010 4:42 PM

  • 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.

  • BSEG.CREATED event not triggering when a document is posted in FB60

    Hi All,
    I have a requirement in which i need to post documents in FB60/FB65/FB01 tcode. But when i post the document in FB60 the event BSEG.CREATED is not triggering. I could not see any trace in SWEL. But when i park the document in FB60, FIPP.CREATED event is getting triggerd.
    Can anyone tell me why this BSEG.CREATED event is not triggering.
    Thanking you in advance,
    satheesh.

    Hi Viji,
    Thanks for your quick reply.
    We have maintained the required configurations in the system related to this. But still the event BSEG.CREATED is not triggering.
    for this the alternative solution is to implement the BTE '1030'. But our functional team is asking us to check whey standard business object BSEG.CREATED is not triggering when we post a document. So that particular reason we are not able to find out.
    Configuration maintained.
    1) Created a workflow variant and assigned it to particular company code(OBWA and OBWJ).
    2) Checked the 'Posting' release' and 'Release payments' checkboxes in the OBWA transaction.
    3) Event linkage for BSEG is active.(SWETYPV)
    Thanks,
    satheesh

  • Is there any event that triggers when you switch between components?

    is there any event that triggers when you switch between components?
    like for example... when i switch between components, i need a function to fire everytime i switch...
    ive tried show, hide, and initialize... and none of them work...
    any ideas or help is greately appretiated!!

    Depends on what you are trying to do,
    you have mouseover and mouseout and mouseclick events which you can use on the component and write code to deal with what you want to happen when you change focus. You have keypress event which would allow you to monitor tabbing between components, remember that in most events the currentTarget and target values will give you the information you need to handle component interaction.
    so
    [Bindable] private var CurrentObject: Object; <-------  use this as a pointer to what ever object you are currently focused on or just to indicate things have changed
    addeventListener(MouseEvent.CLICK,myCompponentSwap);
    protected function myComponentSwap(e:event): void
        if (CurrentObject !=e.currentTarget && CurrentObject != null)
             do what you want becuase a component switch just happened
        CurrentObject = e.currentTarget;
    Hope this gets you started.
    David

  • [svn:fx-trunk] 9180: When another popup is going away as the alert is going up, the Alert can get validated inside of addPopUp and its centering logic never got the event it expected .

    Revision: 9180
    Author:   [email protected]
    Date:     2009-08-07 15:11:43 -0700 (Fri, 07 Aug 2009)
    Log Message:
    When another popup is going away as the alert is going up, the Alert can get validated inside of addPopUp and its centering logic never got the event it expected.
    add the event listener earlier so it is ready if we get validated inside addPopUp
    QE Notes: versioning/baselines/mp_alert_mask_compatible.png needs updating.  I think the current baseline is incorrect.
    Doc Notes: None
    Bugs: SDK-22819
    Reviewer: darrell
    tests: checkintests mustella/components/alert
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22819
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as

    Hi or2tx2002, 
    We're really sorry to learn of all the equipment issues you've experienced in the last year. In order to discuss your replacement options, I ask that you please PM me with your wireless number, a contact number and a good time to reach you. I will be happy to reach out to you and bring resolution to this matter. 
    Thank you and I look forward to hearing from you soon. Make it a great day! 

  • Which business event is triggered when terminate employee?

    Hi,
    I need to know which business event is triggered when press terminate button in end employment form.
    Edited by: 969359 on Mar 18, 2013 5:36 AM

    It must be oracle.apps.per.api.person.delete_person or oracle.apps.per.api.person.update_person.
    Please check.
    FYI: Both of these events are disabled at the instance I was checking. So makes sure they are enabled before you test the events.
    Regards,
    Peddi
    Edited by: Peddi on Mar 18, 2013 3:31 PM

  • Stop streaming when a popup is created

    Hello,
    I've just installed a button on my flash player that, when clicked, a popup window of said flash player appears.
    Everything works but I have one wee problem. When I click for the Flash player to popup, the existing player in the original window continues streaming the video. Until the video has completely streamed in the existing window, the popup window does not start streaming.
    Some of the vids are quite large, forexample taking about 5 mins for the download on the existing page, and then another 5 mins in the popup, which the customer is not at all happy with.
    Is there anyway I can stop the existing player streaming when a popup is created? I think I could move the slider to 100% but can't workout how to do this
    My code for the popup button is (in AS3):
    public function doublePopup(event:Event = null):void
                if (player)
                    var jscommand:String = "window.open('/flash_popup.php','win','height=600,width=695,toolbar=no,scrollbars=no');";
                    var url:URLRequest = new URLRequest("javascript:" + jscommand + " void(0);");
                    navigateToURL(url, "_self");
    Thanks!

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

Maybe you are looking for

  • My iPod touch is downloading and updating apps very slow more than an hour.

    My iPod touch 4th gen 32gb verson 4.3.1 is downloading and updating apps very slow more than an hour. I just got it a day ago and I backed up all my apps music and pictures and videos from iTunes. Few months ago I had an iPod touch but I lost it and

  • Please help. 3 beeps and gray file on startup

    2012 Macbook Pro 13 inch. A friend brought it to me because of a white screen and gray flashing folder on startup. I booted to disk uility and saw that it did not see a hard drive. Pulled hard drive attached it with a external reader to my macbook. w

  • How to validate a datetime in a string

    Hi Team, I have a string,How can i validate whethere the string contains a valid datetime or not ? Thanks in advance. Regards Subrat

  • Problem in exchange data using Bean

    Hi all, I have a problem when creating a portal application. I've done through the steps described in this link: http://www.ajvic.es/irj/portalapps/com.sap.portal.pdk.htmlb.htmlbmanuals/docs/dynpage-01.html In this example, I use bean to exchange dat

  • SMON generating lot of redo

    DB Version 10.2.0.4 OS HP-UX Hello we are facing problem with wait event Redo Log space Wait when i checked for the session which are generating lot of Redo i found SMON at the top.. Just couldn't understand what SMON would be doing so it is generati