on 02-20-2008 3:37 AM
Hi ,
I am using createWindow() method to create popup window. As createWindow() is depricated instead of following line of code
IWDWindow window = wdComponentAPI.getWindowManager().createWindow( windowInfo, true);
i used following line of code
//IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
But i m not getting object in window , i.e. window is null. I don't want to use depricated method , is there any other solution???
Kavita
Hi,
use as follows
IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("EmailWindow");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
window.show();
//Store the window instance for later use, closing purpose
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,
What about windowInfo? Is it initialized properly. What is the line of code, you have written for windowInfo?
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Why do you need to explicitly cast the IWDWindowInfo. findInWindows() method returns IWDWindowInfo object itself. Are you sure there is a window "EmailWindow" in your project.
Else everything looks fine. Please do add the code:
window.show(); // to display the popup window.
thanks & regards,
Manoj
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.