on 09-16-2008 10:49 AM
Hi experts,
In a view I want to have a button which has an action 'search' to open a popup window. So how to write this action code?
Thanks!
Hi,
Following is the code
//To Show the window
IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("<Your Window Name>");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
window.show();
// Store this window for later use to close it
//Create a context attribute of type IWDWindow
wdContext.currentContextElement().setWindowHandle(window);
//To close it
IWDWindow window = wdContext.currentContextElement().getWindowHandle()
window.destroyInstance();
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
pop up is a new window.
so make a new view for the pop-up.
make a window for this pop-up view.
you will be calling this window as a pop-up.
make a context element for your window of IWDWindow type.
write the following code in the action of the event when you want the popup...
// IWDWindowInfo objWindowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("<Window name here>");
// IWDWindow objWindow = wdComponentAPI.getWindowManager().createModalWindow(objWindowInfo);
//
// objWindow.setWindowPosition(300,150);
// objWindow.setTitle("Choose Manufacturer");
// objWindow.setWindowSize(300,400);
// objWindow.show();
// wdContext.currentPopupNodeElement().setCtxManuPopup(objWindow);
regards,
-Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
refer the following link which gives u step by step creation of pop up window.
Creating a Simple Java Web Dynpro Pop-up Window
it will help u.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
refer this pdf it explains everything you need.
refer this Creating and Implementing the showAddressbookPopup() method in this pdf.
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
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.