Skip to Content
author's profile photo Former Member
Former Member

WebDynpro using Portal custom theme as sap-cssurl

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:// :50200/webdynpro/resources/ sap.com/tc wddispwda/global/SSR/themes/sap_chrome";

wdThis.wdFirePlugOutForTheme(themeURL);

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2007 at 03:16 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2007 at 04:44 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2007 at 07:35 PM

    Just created Theme using stardard portal Theme.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.