Skip to Content
author's profile photo Former Member
Former Member

Popup is coming after the execution of method but i need in between then method execution ??

Hi ,

In method A , i called method B for Popup to conform.I need the popup after the method B by breaking the execution flow of method A for conformation.But the popup is coming after the execution of method A.

So how can i do resolve this issue or any other method for this.

Regards,

Aditya.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jan 09, 2014 at 03:22 PM

    Hi Aditya,

    You can achieve your requirement as below

    • Method B ( show popup ) is called in method A
    • You need to subscribe the OK button event to your action on view
    • Now, place your code which needs to be executed after confirmation inside EVENT HANDLER of OK button action.

    So, after confirmation action,your required logic executes 😊

    Please go through the below link for subscribing event to buttons of popup window.

    Validation on pop up window - SAP Webdynpro ABAP

    Hope this helps you.


    Regards,

    Rama

    Message was edited by: Ramakrishnappa Gangappa

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Rama,

      Thanks for your reply.I am doing changes for the existing logic so i cant move code after the popup method due to lot of complexities involved in it.But i thought of managing with indicators.

      Thanks,

      Aditya.

  • Posted on Jan 09, 2014 at 04:22 PM

    Hi Aditya,

    it's as Rama already stated and he also gave you a couple of approaches that'll work for you. What you describe in your opening post is not possible, because the WDA framework simply doesn't work like that. The server eventing and client response always have to be completed before you can prompt the user for input. That's why the popup is presented to the client after the methods have all been executed; you can't just tell the phase model to 'halt' and wait for user input as you can do in the old dynpro technology (I suppose the fact that's it possible there is where the question originated from).

    Cheers, Lukas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2014 at 08:27 PM

    Hi Aditya,

    Rama's suggestion is the correct approach-- subscribe to the popup's button click event and place your "after" logic in the event handler method. Take a look at the following document for information on subscribing to button click events in a popup-to-confirm.

    The Four Types of Popup Window

    See also information on the Phase Model to understand the flow of events.

    Cheers,

    Amy

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.