on 08-23-2009 9:06 AM
Hi,
I developed a web dynpro java application.
It has record deletion action.I want it asks on deletion "are you sure to delete YES NO" question.
How can i do that?
Thanks.
Hi Cemil Bozlagan,
Go to Methods tab. Create two event handlers i.e. Yes, No. "No" event handler is required no coding. In "Yes" event handler write the code for deletion. Use the following code in onActionDelete() to show dialog box.
String dialogText = "Are you sure to delete?";
IWDControllerInfo controlInfo = null;
controlInfo = wdControllerAPI.getViewInfo().getViewController();
IWDConfirmationDialog dialog =wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText, controlInfo.findInEventHandlers("Yes"), "Yes");
dialog.addChoice(wdControllerAPI.getControllerInfo().findInEventHandlers("No"), "No");
dialog.setTitle("Confirmation Message");
dialog.show();
Don't forget to remove the code for deletion in onActionDelete()
Regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.