on 04-13-2011 5:51 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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);
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
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.