Show TOC 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 the Config Tool.

       2.      From the menu, select the Tools Configuration Editor menu.

       3.      In the configuration tree, navigate to webdynpro    sap.com   tc~wd~dispwda    Propertysheet default.

This graphic is explained in the accompanying text

       4.      Double-click Propertysheet default.

The properties that can be changed are displayed.

This graphic is explained in the accompanying text

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

       6.      Restart the AS Java.

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.

Note

The use of the Config Tool requires the restart of the AS Java. To configure Web Dynpro without the need for a restart, see SAP Note 1012065.

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