cancel
Showing results for 
Search instead for 
Did you mean: 

Project specific stylesheets

Former Member
0 Kudos

Hi,

is it possible to define project specific stylesheets (CSS-styles) that are used for the standard Web Dynpro controls?

The generated HTML files get their styles from

webdynpro\web\sap.com\tcwddispwda\global\SSR\themes\sap_tradeshow\ur

I would like to tell them using

webdynpro\web\local\[project name] or whatever.

Thanks

Helmut

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Helmut,

it should be possible to define the stylesheets to use for a WD application by defining a theme url (as far as i know, this is also the way the theme is determined if running in portal). This is achieved by adding the url parameter "style_sheet" to the WD application url.

The theme url has to be fully qualified and has to point to the theme "root directory". As default, this is the <...>/sap_tradeshow directory you mentioned. For SSR "ur/ur_" is appended, followed by the client (for example ie6) and ".css".

But this feature is undocumented and seems to be reserved for portal usage, so maybe you're running into trouble somehow.

Hope that helps.

Regards

Stefan

htammen
Active Contributor
0 Kudos

Thanks Stefan,

it works. At the moment I´m running my Web Dynpro as standalone application but I plan to run it inside a portal.

So I guess I have to have the same themes in portal (Web AS 6.20) and Web Dynpro (Web AS 6.30)?

Regards

Helmut

Former Member
0 Kudos

Hi Helmut,

as far as i know, the portal provides support for predefined and custom themes (including a CSS and/or theme editor) to adapt the visual appearance to corporate identity for example. So it should be possible to define the themes you want there. If your WD app is running as an iView or iFrame in the portal, the theme url should be propagated to your application just like you have done it manually now. But i'm not really a portal specialist.

Hope that helps.

Regards

Stefan

Former Member
0 Kudos

Hi,

I am still not able to assign my own style to Web Dynpro-applications;

I can use a css-Stylesheet for my WebDynpro-application by adding something like this to the WebDynpro-URL:

"?style_sheet=URL to myStylesheet.css"

Right?

And: Within the SAP-Portal there is a "Theme-Editor" in which you can define the layout for your Portal-content.

Right?

Problem: How can I export/create a ".css"-File from a Theme I have defined there? I can export a theme to the file-system, but this doesn't give me a ".css"-File. Or do I not need a ".css"-File?

I know, I should use Web Dynpro within the Portal, but as long as I don't do this, I also want to assign my own style to my Web Dynpro-Application.

Can you help?

Josef

htammen
Active Contributor
0 Kudos

Hi Josef,

it´s not just one css-file, it´s a bundle of css-files. All these files are located in one directory with sub-dirs.

After generating your Theme in the portal you have to copy the dirs from the portal location (don´t know exactly where to find them, you have to look) to the web dynpro server and location (see above).

Then you can use the url parameter style_sheet=

Regards

Helmut