I have created a button on my Web Dynpro application that launches a summary report, which is another Web Dynpro screen. What I want to do is apply a custom stylesheet so this page is setup for printing.
My button is mapped to an action that loads the summary report screen in a separate window:
String url = WDURLGenerator.getWorkloadBalancedApplicationURL(
"local/EVENTS_EventSummaryReport",
"SummaryReport", p);
String css_url = WDURLGenerator.getAbsoluteWebResourceURL(
"local/EVENTS_EventSummaryReport",
"Components/com.linxas.events.summary.report.SummaryReport/report.css");
url += "&sap-cssurl=" + css_url;
wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,
"Event Summary Report").show();
The resulting url for the report screen is:
http://linx-serv5:50000/webdynpro/dispatcher/local/EVENTS_EventSummaryReport/SummaryReport?ialid=00000000000000001265&sap-cssurl=http://linx-serv5:50000/webdynpro/resources/local/EVENTS_EventSummaryReport/Components/com.linxas.events.summary.report.SummaryReport/report.css
This is the correct url, or at least what I think is the correct url. The report opens, but there is no css applied to it. I checked and the css I want is located at the sap-cssurl location of http://linx-serv5:50000/webdynpro/resources/local/EVENTS_EventSummaryReport/Components/com.linxas.events.summary.report.SummaryReport/report.css.
However if I view the source of the resulting page, the css location shows this:
http://linx-serv5:50000/webdynpro/resources/local/EVENTS_EventSummaryReport/Components/com.linxas.events.summary.report.SummaryReport/report.css/ur/ur_ie6.css
It's appending /ur/ur_ie6.css to my path. Is there any way to make it not do that? I don't want to have to know which browser the client is using for this.
Any help would be appreciated.
Edited by: Tom Cole on Feb 5, 2009 9:22 PM
Edited by: Tom Cole on Feb 5, 2009 9:23 PM
Edited by: Tom Cole on Feb 5, 2009 9:25 PM