cancel
Showing results for 
Search instead for 
Did you mean: 

Popup window name shows complete application URL

Amey-Mogare
Contributor
0 Kudos

Hi,

I have two WD Java applications. App-1 and App-2.

I am opening App-2 as a non-modal popup window from App-1.

I want to display "Profile" as a name of this popped up window.

I have set this property while opening this window, but it still shows complete path of App-2 as window name.


IWDRequest aRequest = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
 String sUserDetailsURL = <app2 url>;
 IWDWindow aDetailPopUp = wdComponentAPI.getWindowManager().createNonModalExternalWindow(sUserDetailsURL);
  aDetailPopUp.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
  aDetailPopUp.removeWindowFeature(WDWindowFeature.MENU_BAR);
  aDetailPopUp.removeWindowFeature(WDWindowFeature.STATUS_BAR);
  aDetailPopUp.removeWindowFeature(WDWindowFeature.TOOL_BAR);
  aDetailPopUp.setTitle("Profile");
  aDetailPopUp.setWindowSize(616, 520);
  aDetailPopUp.show();

Can anybody please tell me what is going wrong here?

Also, another java application (non-WD) application is also calling App-2 as pop up window with name "Profile", but here also, same issue.


Var win=window.open(url,"Profile","menubar=no,status=no,scrollbars=no,directories=no,location=no,resizable=yes,width=725,height=625");

Please help.

Accepted Solutions (1)

Accepted Solutions (1)

Qualiture
Active Contributor
0 Kudos

Hi Amey,

If you run the application standalone (i.e. directly from URL), do you see the complete path as well, or do you see the application name (as is expected)

Robin

Amey-Mogare
Contributor
0 Kudos

Hi Robin,

When I run it standalone, I see just application name (not entire URL).

Qualiture
Active Contributor
0 Kudos

That's odd... So the application title shows perfectly, however if you try to set it deliberately to a more descriptive text in a popup, it shows the complete path.

I can imagine setting the title would only work on a Modal window, so its framework controlled, not sure about a non-modal window though...

If your application runs in a portal, you could try using the following method:

WDPortalNavigation.navigateAbsolute(
		yourPagePathAndName,
		WDPortalNavigationMode.SHOW_EXTERNAL,
		yourPageWindowFeatures,
		"", /* window name/handler, can be empty string */
		WDPortalNavigationHistoryMode.NO_HISTORY,
		"Here set your page title",
		"",
		yourPageUrlParameters);

Amey-Mogare
Contributor
0 Kudos

Hi Robin,

I tried running it on portal and applied portal navigation technique.

It works. This solves 2 out of 3 scenarios.

But this WD application is also being called from another non-sap Java application as pop-up window with URL parameters.

So I still need to find out the way to overcome this problem.

Can we get reference of current parent window of WD application in code? Can we manipulate this is in wdDoInit method of component controller?

Thanks and regards,

Amey

Former Member
0 Kudos

Hi Amey,

Did you checked your windows properties(App2)? if not

Can you check the Window Properties and set the Title name

Windows(<App2> window->>Window name>) -


> Properties --->title --->(Give your Popup Window name)

It will works..

Regards,

Manivannan P

Answers (0)