on 10-25-2007 10:42 AM
Hello,
This should actually be a straighforward task, but I don't understand why I am facing a problem.
I am opening an external window (browser) and trying to set the title of the window. Here is the code
IWDWindow win = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Title");
win.setTitle("Title");
win.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
win.removeWindowFeature(WDWindowFeature.MENU_BAR);
win.removeWindowFeature(WDWindowFeature.STATUS_BAR);
win.removeWindowFeature(WDWindowFeature.TOOL_BAR);
win.setWindowPosition(100, 150);
win.show();
The window opens well with the right URL. But the title does not seem to be changing at all. The URL is displayed instead of the title. Where could I be going wrong?
I have placed this code within an action event
We are using EP7 SP10.
Thanks and Regards,
Reena
Hi Reema
IWDWindow win = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Title");
win.setTitle("Title");
in the above code createNonModalExternalWindow(url,"Title"); here it self you are setting the title , just comment this statement [win.setTitle("Title");]
and see the <b>source</b> of the external window whether you can see the title as you mentioned or not
Best Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Reena,
Looks like a bug to me. It sets the title alright (seen in debugging) but doesnt display it for some reason, for external windows based on URLs.
win.setTitle() works perfectly for windows created with IWDWindowInfo.
May be you should raise an OSS message.
Hope that helps.
Regards,
Rajit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.