on 09-05-2008 11:16 AM
Hello all
I have one requirement regarding confirmation dialog box with yes/no buttons and If yes execute bapi mode otherwise cancel navigation, how to do it.
Regards
CSP
Dear Predeep
Try the following link
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/creatingConfirmationDialogBoxinWebDynproJava
I hope it will help u
Regards
Naresh Garg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
IWDControllerInfo controllerInfo =
wdControllerAPI.getViewInfo().getViewController();
String dialogText = "Confirm Deletion";
IWDConfirmationDialog dialog =
wdComponentAPI.getWindowManager().createConfirmationWindow(
dialogText,
controllerInfo.findInEventHandlers("Yes"),
"Yes");
dialog.addChoice(
controllerInfo.findInEventHandlers("No"), "No");
dialog.open();
and create two eventhandlers Yes and No.
and implement the bapi call code in Yes event handler.
Regards,
ramesh
Edited by: Ramesh Babu V on Sep 5, 2008 5:11 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Code for Confirmation window is :-
you need to get controller info for that, code is
IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();
IWDConfirmationDialog dialog =wdComponentAPI.getWindowManager(). createConfirmationWindow("<dialogText>",controllerInfo.findInEventHandlers(<"name of the Handler function credated by you for Ok"),"Ok");
name of the Handler function means i have created window with Ok abd cancel button.
*for "Ok" you need to create event handler and "Ok" is the name of button*
dialog.setTitle( "Delete Confirmation");
this line use to add "Cancel button with it's Event handlerdialog.addChoice(controllerInfo.findInEventHandlers("name of the Handler function credated by you for cancel"),("Cancel"))
dialog.open();
And in the Event Handler function for "Ok" button you need to write code for execute bapi.
And same for the Cancel logic in the "Cancel event handler".
Hope this may help you.
Deepak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please refers the followings links.
Dialog Boxes in Web Dynpro Applications
Confirmation Dialog Box
Thanks
Abhilasha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
this will answer your question
check page 22 in above document
PradeeP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.