cancel
Showing results for 
Search instead for 
Did you mean: 

Pop up message

Former Member
0 Kudos

Hi ,

can any one help me in displaying pop up message , when user clicks on submit I have to dispaly pop up message "do you want to proceed"

Regards,

Venki/

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Make use of Confirmation Messages

API -> IWDConfirmationDialog

Sample-> https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/creatingConfirmationDialogBoxinWebDynproJava

Regards

Ayyapparaj

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You can try out the following code in the view controller:

String dialogText = "do you want to proceed ?";

IWDEventHandlerInfo eventHandler = wdControllerAPI.getViewInfo().getViewController()

.findInEventHandlers("OK");

// Create the confirmation dialog, with an "ok" button

IWDConfirmationDialog dialog =wdComponentAPI.getWindowManager()

.createConfirmationWindow(dialogText,eventHandler,"OK");

dialog.open();

And then create a event handler method in view controller .

Thanks

Ritushree

Former Member
0 Kudos

Hi,

use the following code on submit button,

IWDControllerInfo coninfo =wdControllerAPI.getViewInfo().getViewController();

IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow("do you want to proceed.",coninfo.findInEventHandlers("Ok"),"Ok");

dialog.open();

create one eventhandler with name "Ok" .

Regards,

ramesh

Former Member
0 Kudos

Hi,

For this go for confirmation window

1) create two action handlers (ok and cancel)under method tab and just copy the following code

2)

IWDControllerInfo cntrl_info = wdControllerAPI.getViewInfo().getViewController();

IWDConfirmationDialog confirm = wdComponentAPI.getWindowManager().createConfirmationWindow("You are going to Exit, Want to Proceed?",cntrl_info.findInEventHandlers("cancel"),"Cancel");

confirm.addChoice(cntrl_info.findInEventHandlers("ok"),"Confirm");

confirm.setWindowSize(250,100); confirm.setWindowPosition(100,100);

confirm.show();

3) implement the functionality in ok method that you want to proceed.

Regards

Raghu