on 06-17-2006 4:08 PM
Hello,
I'm trying to create a popup window with a button. Popup is coming, but without button. Can any one help?
IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();
String dialogText = "Validation Failed";
IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(
dialogText,
controllerInfo.findInEventHandlers("onActionok"),"ok");
dialog.open();
my event code is
public void onActionok(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionok(ServerEvent)
wdComponentAPI.getMessageManager().reportSuccess("onActionOk");
//@@end
}
Thanks in Advance
Raj..
Hi,
Ur code will work fine for the dialog box with the button name ok.
After clicking the ok button in the dialog box
the report Sucess will also be execured.
1)Check that the onActionOk is there in the methods tab.
2)Then write ur code in any of the action(i.e.) Button.
Do not write ur code in the init method.
Regards,
Vijayakhanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Oj,
I am also facing same issue(popup without any button).I worked with this code before, but it is not working for me.
i am able to display the dialog box. but is giving the following error message.
"Internet Explorer cannot open the Internet site 'http:my portal url' - Operation aborted" with OK button
Please help me.
Regards,
Davood.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajakumar
You can use this:
final IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow
("Hello!",wdControllerAPI.getControllerInfo().findInEventHandlers("onActionok"),
"OK");
dialog.show();
regards,
oj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hai ,
Why do you want your confirmation Box ,without button,how can you close confirmation box without any action componenet, if you want this require ment, Please go throgh the External window.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/dialog boxes in web dynpro applications.pdf
regards,
Naga Raju
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.