cancel
Showing results for 
Search instead for 
Did you mean: 

Using sap-cssurl

Former Member
0 Kudos

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=000...

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.ev....

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.ev...

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I solved the problem. I had to use the Theme Builder and post all the generated contents, not just the single css.