on 11-30-2005 10:17 PM
Hello,
I am trying to create a confirmation dialogue in my Web Dynpro project. Below is the code. When this logic is invoked, a box is displayed but neither the message and the button is displayed.
Any thoughts.
Thanks,
Mike
IWDConfirmationDialog dialog;
String dialogText = "No Employee Record Found";
dialog = wdComponentAPI.getWindowManager().
createConfirmationWindow(
dialogText,
wdControllerAPI.getControllerInfo().findInEventHandlers("Ok"),
"OK");
dialog.open();
hi mike.
create event handler with name <b>onActionButton_0</b>
and write the below code on some action say button.
the eventhandler name in confirmationdialogwindow should match exactly. i hope problem with ur cody is with event handler name.
IWDConfirmationDialog cdialog = wdComponentAPI.getWindowManager().createConfirmationWindow("This is the Confirmation text",wdControllerAPI.getControllerInfo().findInEventHandlers("onActionButton_0"),"OKKKKKKK");
cdialog.open();
i just tried this.
and it is working.
if ur problem is solved let me know.
thanks .
Brahmanandam Ausali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Got to properties of the view
In required controllers add the component controller
Create the necessary eventhandlers by clicking method tab in view.Suppose if there are two options in the confirmation box- Ok and Cancel , create 2 event handlers by name "Ok" and "Cancel"
String dialog = "Confirm Reservation";
IWDConfirmationDialog confirm =
wdThis.wdGet<Controller name>Controller().wdGetAPI().getWindowManager().createConfirmationWindow(dialog,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("Ok"),"Ok");
confirm.addChoice(wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("Cancel"),"Cancel");
confirm.open();
Hope this helps you
Regards
Rohit
hi mike,
try this
IWDControllerInfo con=wdControllerAPI.getViewInfo().getViewController();
String dia="No Employee Record Found";
IWDConfirmationDialog dialog=wdComponentAPI.getWindowManager().createConfirmationWindow(dia,con.findInEventHandlers("ok"),"ok");
dialog.open();
u refer the following links
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tu... on creating dialog boxes - 10.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/di... boxes in web dynpro applications.pdf
hope this helps,
Regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.