cancel
Showing results for 
Search instead for 
Did you mean: 

popup windows

Former Member
0 Kudos

hi

i am new to java webdynpro

i need sample application for popupwindows(i.e confirmation window)

and code for that

plz help neede for urgent

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

answered

Former Member
0 Kudos

Hi Shravan,

Write the following code to display the dialogue box for confirmation.

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

IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(

wdComponentAPI.getTextAccessor().getText("OK"),

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

dialog.setWindowPosition(250,250);

dialog.setWindowSize(250,50);

dialog.addChoice(controllerInfo.findInEventHandlers("Cancel"), "Cancel");

dialog.show();

For this you need to create two action methods as "Ok" and "Cancel"

Former Member
0 Kudos

Hi Shravan,

Refer the following link this will help you in developing popup windows:

[Popup Windows|http://help.sap.com/saphelp_nw2004s/helpdata/en/fd/024640c0e56913e10000000a1550b0/content.htm]

thanks & regards,

Manoj

Former Member
0 Kudos

Hi,

Use wdComponentAPI.getWindowManager().createConfirmationWindow

Usage

public IWDConfirmationDialog createConfirmationWindow(String confirmationText, IWDAction action, String label)

Regards

Ayyapparaj

Former Member
0 Kudos

Have you tried searching the forum or reading articles/tutorials?

Armin