cancel
Showing results for 
Search instead for 
Did you mean: 

Show pop up Window...

Former Member
0 Kudos

Hi Experts,

My Requirement is that..i have some input fields, when the user fill the input fields and press SAVE button, a pop up window should appear saying "ARE YOU SURE", just like in windows, please tell me how can i do this in Web dynpro java.

Thanks and Regards

Upendra Agrawal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Upendra,

Create a new window and embed new view inside it.. in the view you can add the message that you want to dispaly.

In the view controller of you main window, create an action like button click and write the following code:


IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("WindowName");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
window.setWindowSize(300,300);
window.show();
	
wdContext.currentNewWindowElement().setWindowInstance(window);

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

My problem is solved,

Thanks everybody, you guys are really fast,

Regards

Upendra

Former Member
0 Kudos

Hi Upendra

please go through this link

Hope it will be helpful for you

Regards

Ruturaj

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

You can go for creating confirmation window

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("ok2"),"Confirm");

confirm.setWindowSize(250,100);

confirm.setWindowPosition(100,100);

confirm.show();

For this you need to create two EventHandlers(ok and cancel) under methods tab. This is discussed in many threads you can go through them if you want any clarifications.

Regards

Raghu

Former Member
0 Kudos

hi

If you want a popup to have options save then

you need to have a event handlers

1) Create aevent handlers SAVE,. Under methods tap select eventhandler radio button.

2)In action button you write the following code

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

IWDConfirmationDialog confirm = wdComponentAPI.getWindowManager().createConfirmationWindow("data saved", cntrl_info.findInEventHandlers("save"),"save");

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

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

confirm.show();

thanks

vishal

Edited by: Vishal Anand on Oct 14, 2008 11:28 AM