Start of Content Area

Component documentation Setting the Theme   Locate the document in its SAP Library structure

Web Dynpro applications in the portal automatically use the currently selected portal theme, and any user or role-based personalization of the theme.

You can configure Web Dynpro runtime to use the Web Dynpro theme instead of the portal theme by doing the following:

...

       1.      Open Visual Administrator.

       2.      Select the Configuration Adapterservice.

       3.      In the Runtime ® Display configurations tab, navigate to the following:

webdynpro  ®  sap.com  ®  tc~wd~dispwda  ®  Propertysheet default

       4.      Set the sap.useWebDynproStyleSheet property to true. The default is false.

This graphic is explained in the accompanying text

Note

If the portal and a Web Dynpro application in the portal are running on different systems with different releases, style sheet compatibility problems can occur when the portal version is older than the Web Dynpro runtime. In such cases, the problem can be solved by having the Web Dynpro application use the Web Dynpro theme.

Selecting the Default Theme

You can set the default Web Dynpro theme by modifying the sap.theme.default property, which is also located in the Propertysheet default folder.

Specify a valid, fully qualified URL of the theme, with the following format:

http://<host>:<port>/<path to the theme>/<theme name>

The following is an example of a valid URL:

http://localhost:50000/irj/portalapps/com.sap.portal.themes.lafservice
          /themes/portal/sap_chrome
.

Selecting an Application-Specific Theme

You can select a theme for a specific application by adding the URL parameter sap-cssurl, which must be a valid, fully qualified and encoded URL to a theme. This overrides the default setting.

 

 

End of Content Area