on 01-09-2014 2:55 PM
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.
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.
Hope this helps you.
Regards,
Rama
Message was edited by: Ramakrishnappa Gangappa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
See also information on the Phase Model to understand the flow of events.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.