Tuesday, February 17, 2009

Defining WebDynpro Themes for Standalone Application

Running as a Standalone Application
If the Web Dynpro application runs as a standalone application (i.e. not inside the SAP Enterprise Portal 6.0), or if the Web Dynpro runtime is configured to use the Web Dynpro theme in every case, you have two options to define the theme used by a Web Dynpro application. You can define the default theme (i.e. the theme used by all applications running on this system) or you can define an application-specific theme.
Defining the Default Theme
If you wish to change the default theme of the Web Dynpro runtime, you must use the Configuration Adapter service of the Visual Admin as described above.
You must maintain one property of the Propertysheet default named sap.theme.default.
For value, you must define a valid URL referring the used theme as:
http://://
You must make sure that the defined URL points to the theme folder (in the example, for the theme sap_chrome). You must not use a fully-qualified URL to the concrete CSS file of the theme.

How to Define the Theme Used by a Web DynproJava Application


SocialTwist Tell-a-Friend

Web Dynpro applications provide the possibility of defining customer-specific themes. If the Web Dynpro application and the portal are running on different systems with different releases, there could be problems with incompatible style sheets defining the used theme. If the portal system is "older" than the system running the Web Dynpro application, this could cause errors in the behavior of some UI elements of the Web Dynpro application (because these UI elements also depend on the used themes/style sheets).
Therefore, it is possible to configure the Web Dynpro runtime to use not the portal theme, but the defined Web Dynpro theme. This would mean that the Web Dynpro application is rendered in a different theme than the portal, but the Web Dynpro application works fine without problems (because the incompatible portal theme is not used).
To prevent the Web Dynpro runtime from using the portal theme, you have to use the Visual Admin. Choose: Configuration Adapter service and browse to:
webdynpro -> sap.com -> tc~wd~dispwda -> Propertysheet default.

You have to open this default property sheet and change one property value called: sap.useWebDynproStyleSheet.


The possible values are:
• true
The Web Dynpro application does not use the portal theme but the theme defined by the Web Dynpro runtime. This should only be used if there are compatibility problems between the themes provided by the portal system and the system running the Web Dynpro application.
• false
The Web Dynpro application uses the theme defined by the portal. This is the default for SAP NetWeaver ’04 Stack 09.

Note: This article describes the scenario when your WD application is hosted in Netweavwer Portal.

Starting a professional blog

Never start your professional blog on blogger.com, this was the suggestion given by one of the top SEO analysis tool. However, i see not harm in starting a blog on blogger if i am writing it just for sharing the knowledge. So here it comes - yet another blog from me. Earlier being Journey So Far.. and MBA Guy.
Reason is clear, i want to blog about the technology i work on and things i learnt or more precisely, learning. It is the Netweaver Platform. I have been working on various technologies of Netweaver, aslo called as NW since 2 years. I worked on SAP Enterprise Portal (Now called as Netweaver Portal), WebDynpro, Visual Composer, SAP Master Data Management and recently i am working on SAP Mobile Infrastructure. I have been contributing on SDN since i started working in the world of SAP and i am able to contribute quite nicely with more than 2250 Points and some articles as well. One on NWDI, Two on Portal Customizations Part-1 and Part-2, One on Guided Procedures in Portal, one more on Web search using Guided Procedues and last but not least, one on SAP Netweaver FAQ.
I am also writing for most respected journal in the field of SAP - SAP Professional Journal. I am hoping to get the article published in early March 2009.
I think this introduction should be enough. I will write directly on some Netweaver Concepts like Portal, Dynpro, MI and MDM. Kindly keep on visiting this blog more often to stay updated on SAP Netweaver Space
Cheers