cancel
Showing results for 
Search instead for 
Did you mean: 

PopUp Window

Former Member
0 Kudos

Hello All,

I am trying to create an application which opens in a small window of IE. By small window i mean that the <b>menubar</b> & <b>tool bar</b> etc of <b>Internet Explorer</b> are <b>not available</b> to the user from the <b>start of application</b>.

It is like an <b>applicaion starting in a pop-up</b>.

Is it possible?

Regards,

Aayush

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi All,

Here Aayush is trying to call a popup window in the Init method of one view.

But he is getting an IE popup and application is terminating.

Question is whats the problem in calling a popup window in the init method of another view ?

Regards, Anilkumar

guru_subramanianb
Active Contributor
0 Kudos

Hi,

delete offline content in IE.then popup windows shd work.

After opening the window have a button in the window and onclick on it fire

window.close();

Regards,

Guru

aayush_dubey3
Explorer
0 Kudos

Hello Guru,

I can delete the offline content in IE so that it works in my machine. But once the application is ready i want it to run on customers machine as well. Will it work ?

Regards,

Aayush

Former Member
0 Kudos

Hi,

How is deleting offline content related to pop up windows ????

Former Member
0 Kudos

hi Aayash,

If you have solved the problem please close the post

Regards

Rohit

aayush_dubey3
Explorer
0 Kudos

Hello Rohit,

I still get the same error :-(. Please suggest what can be done.

Regards,

Aayush

Former Member
0 Kudos

Hi Aayush

I have seen your code. You seem to call the popup window from init method of the view. Generally this is not the method.

You need to call the code what you have written on any action once the view is loaded.

Now what you are trying to do is create a popup window without a parent window :-).

Regards

NagaKishore

Former Member
0 Kudos

Hi Aayash,

You can create a window using the following code. But you cant drag the window

IWDWindowInfo wininfo = wdComponentAPI.getComponentInfo().findInWindows("WD_Group_Details");

IWDWindow myextwindow = wdComponentAPI.getWindowManager().createWindow(wininfo,true);

myextwindow.setWindowPosition(80,150);

myextwindow.setWindowSize(800,200);

( (Window) myextwindow ).setTitle( "Session Details");

myextwindow.open();

Hope this helps you

Regards

Rohit

aayush_dubey3
Explorer
0 Kudos

Hi Rohit,

Thanks. I used the following code in wdDoInit method:

IWDWindowInfo wininfo = wdComponentAPI.getComponentInfo().findInWindows("myUIWindow");

IWDWindow myextwindow = wdThis.wdGetAPI().getComponent().getWindowManager().createModalWindow(wininfo);

myextwindow.setWindowPosition(80,150);

myextwindow.setWindowSize(800,200);

( (Window) myextwindow ).setTitle( "Session Details");

myextwindow.open();

But i get the following error:

Internet Explorer cannot open the site http://<hostname>:<port>:/. operation aborted

I need my first view of application to come in a pop-up button & when i click on <b>close</b> button it should close.

Regards,

Aayush

Former Member
0 Kudos

I faced the exact a similar problem in which I was trying to open a pop-up in the wdDoInit, or wdDoModifyView methods of the view. But it gave me an IE "Operation aborted" dump.

Please check /community [original link is broken] messageID=1099475&tstart=0. Read the COMPLETE thread... especially the second last entry. Valery has given the possible explanation for this problem & a perfect workaround ..

And it works absolutely fine too !

regards,

Navneet.

guru_subramanianb
Active Contributor
0 Kudos

Hi Ayush,

In any event say openwindow() have this code snippet:-

IWDWindow mywindow= wdComponentAPI.getWindowManager.

createExternalWindow(String Url,String Title,Boolean modal);

mywindow.open();

For Eg:-

String Url ="http://www.google.com";

String Title ="Google Window";

Boolean Modal ="true or False";

Note:- As of now only non modal windows are supported.

Hope it helps.

Regards,

guru