on 01-17-2006 8:34 AM
Hi
I have an application , for which I have specifically defined the theme in the theme editor. And I am including its css files in the code.
In the VA also, corresponding property has been set to true.
But the problem is when I run this app from the portal , it doesnt show the changed theme.
And when I run this application from http://<host>:<port>/webdynpro/welcome , the application opens showing the changed theme.
We tried clearing the portal cache and running again, but to no avail.
Does anybody have any idea how to go about it?
Thanks & regards,
Anupreet
Hi,
there is a SDN article regarding WD and theme handling, describing this all in detail.
Best regards
Jochen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are including the css files in the code ? You dint use the VA settings to set the theme ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bharathwaj
I have created an exit plug and have written the following code in the defaultPlug of the interface view:-
try{
String URLParams = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("sap-cssurl");
if(URLParams == null)
{
WDDeployableObjectPart currentAppPart = wdThis.wdGetAPI().getComponent().getApplication().getDeployableObjectPart();
String appPath=WDURLGenerator.getApplicationURL(currentAppPart);
wdThis.wdFirePlugCssPlug(appPath+"?sap-cssurl=http://<host>:<port>/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/SpecificTheme/");
}
}catch(WDURLException ex)
{
ex.printStackTrace();
}
In the VA also, i changed the settings in the property sheet.
Even then through portal, it is not displaying the css files look.
but running the application through webdynpro/welcome, it displays exactly as per the css files.
Thanks & regards,
Anupreet
Hi ,
Try this for the sap-cssurl
http://<hostname>:50000/webdynpro/resources/sap.com/tcwddispwda/global/SSR/themes/sap_chrome
instead of using the portal theme path.
Regards
Bharathwaj
Hi,
<i>neither the one specified by you nor the application specific theme that has been defined .
</i>>
Can you tell me where u have set the theme path i have mentioned.
Please use the path mentioned by me in the Web Dynpro code you have posted and check.
Please provide the following values :
<i>cssurl used in code :
theme url in VA :
sap.useWebDynpro style sheet : true/false</i>
Regards
Bharathwaj
Hi
Here are the details:
cssurl used in code : http://<host>:<port>/webdynpro/resources/sap.com/tcwddispwda/global/SSR/themes/sap_chrome
sap.useWebDynpro style sheet : it has been set to true
theme url in VA : this we haven't specified, because i suppose, if we specify the path here, corresponding css file will be picked by all the applications, though we want only for specific application.
Correct me if i am wrong.
Thanks & regards,
Anupreet
Hi
yes, the exit plug is of typeString and the parameter name is also Url.
But there is one more problem we are facing:
After we restarted the server,
1) the existing problem persisted
2) All the other applications's theme also changed to the default theme( that could be because we haven't included exit plug etc in any other application)
Do you have any idea, so that we can change the theme of the specific application and also at the same time not disturbing the theme of all other applications without having to make any changes regardign exit plug in all the applications?
Besides, is there anything related to the precedence ? i am not very sure about this factor
Thanks & regards,
Anupreet
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.