cancel
Showing results for 
Search instead for 
Did you mean: 

Popup window

Former Member
0 Kudos

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..

Accepted Solutions (0)

Answers (4)

Answers (4)

vijayakhanna_raman
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Vijayakhanna ,

I want this dailog box to be pop-up at the time of initializing the application only.

So i am trying to write the code in separate method and calling this method in wdDoInit() method. I am getting problem wht i explained above.

Please help me.

Regards,

Davood.

Former Member
0 Kudos

I faced the exact same problem.

Please check Read the COMPLETE thread... especially the second last entry. Valery has given the possible explanation for this problem & a perfect workaround ..

And it works absolutely fine too !

regards,

Navneet.

Former Member
0 Kudos

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.

MG3
Contributor
0 Kudos

Hi Rajakumar

You can use this:

final IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow
	("Hello!",wdControllerAPI.getControllerInfo().findInEventHandlers("onActionok"),
	"OK"); 
	dialog.show();

regards,

oj

Former Member
0 Kudos

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