on 10-14-2008 10:18 AM
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
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);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
My problem is solved,
Thanks everybody, you guys are really fast,
Regards
Upendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi!
please go through this link
thanks
vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.