cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro using Portal custom theme as sap-cssurl

Former Member
0 Kudos

Hi,

I tried using sap-cssurl in my application window interface view. After all, when I click on WD iview, nothing comes, it's keep on reading some thing from server i guess. Here i did not use any Theme Editor or theme copy to the folders. I see sap_chrome in the SSR/themes folder. I am trying to use the same to test. Did I do some thing wrong here? Pls help me.

Code written in onPlugDefault

WDDeployableObjectPart currentAppPart = wdThis.wdGetAPI().getComponent().getApplication().getDeployableObjectPart();

String themeURL = WDURLGenerator.getApplicationURL(currentAppPart);

themeURL = themeURL"?sap-cssurl=""http://<myserver>:50200/webdynpro/resources/sap.com/tcwddispwda/global/SSR/themes/sap_chrome";

wdThis.wdFirePlugOutForTheme(themeURL);

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In the URL that you have built, you haven't mentioned the CSS file name. I think that can be a problem. Try this:

sap-cssurl=http://<Host-Name>:<Port-Nummer>/webdynpro/resources/sap.com/tc~wd~dispwda/global/SSR/themes/sap_chrome/ur/ur_ie5.css

Regards,

Satyajit.

Answers (2)

Answers (2)

Former Member
0 Kudos

Just created Theme using stardard portal Theme.

Former Member
0 Kudos

Thanks Satya,

I managed to make it happen. Your inputs are so useful.

Now My WD application has special theme and rest of portal apps has it's own theme. By the way i am using NW04 SP20 WAS/PORTAL.

Solution:

1. Made changes to Existing Portal theme in the Standard Portal Theme editor ( Sys Admin->Portal Display-> Theme Editor ) and saved as custom theme in the portal.

2. Open Webdynpro Iview properties

a. set the following value in the application parameters property

sap-cssurl=http://myserver:50000/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/<MyTHEME>/ur/ur_ie6.css?6.0.20.0.4&sap-cssversion=6.0.15.0.0

b. Set No to Use Portal Stylesheet property.

That's it. No need to use theme editor or any other tools. No need to write single line of code code in the Webdynpro application.

Former Member
0 Kudos

Hi Ramana, i need to do the same thing. can you tell me how you created the WD theme? did you use a tool for that or you used an existent theme. I need to create some "3D like" WD buttons through stylesheets....

Thanks in advance

Tiberiu

Former Member
0 Kudos

Hi Ramana,

The step you mentioned in 2.b. Set No to Use Portal Stylesheet property, I cannot set that property to No. I do not know what is the cause of it. Do any of you guys have any idea why ?

Thanks,

Johannes