on 04-29-2004 8:47 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.