cancel
Showing results for 
Search instead for 
Did you mean: 

how to display popup messages in webdynpro

Former Member
0 Kudos

Hi all,

I have an application which has continue button.if the userclicks on this button a pop has to come with the msg as "Do u want to continue" ..followed by Yes and No....

how to show popup msgs in my webdynpro application

Regards

Padma N

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi! padma,

please go through the following tutorial, you will get a good idea..

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#23">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#23</a>

you need to create an object of IWDConfirmationDialog and also the eventHandle.

regards,

Mithileshwar Sahu

Former Member
0 Kudos

HI padma,

Use this code

IWDControllerInfo controllerInfo =

wdControllerAPI.getViewInfo().getViewController();

String dialogText = "Are you sure you want to continue?";

IWDConfirmationDialog dialog =

wdComponentAPI.getWindowManager ().createConfirmationWindow(

dialogText,

controllerInfo.findInEventHandlers("Yes"),"Yes");

dialog.addChoice(

controllerInfo.findInEventHandlers("onActionNo"), "No");

dialog.show();

Regards,

karthik.

Former Member
0 Kudos

Hi,

1. Create 2 event handlers with name Yes and No in the methods tab.

You can use Confirmation window for this.

IWDEventHandlerInfo eventyes = wdControllerAPI.getViewInfo().getView().findinEventHandlers("Yes");

IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationDialog("Are you sure you want to continue",eventyes,"Yes");

IWDEventHandlerInfo eventno = wdControllerAPI.getViewInfo().getView().findinEventHandlers("No");

dialog.addChoice(eventno,"No");

dialog.show();

Warm Regards,

Murtuza