cancel
Showing results for 
Search instead for 
Did you mean: 

How to custom theme with sap-cssur ? WD Portal Integration - EP SP 16

Former Member
0 Kudos

Hello:

I'm working with WAS 6.40 SP16 and EP SP 16.

I follow the steps of:

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d35bb690-0201-0010-988a-d669c8530518">Portal Integration of Web Dynpro Applications</a>, I Create a Web Dynpro iView, page 9, to integrate my WD app into SAP Portal. Then I follow the steps of the same document (see Defining the Theme for Web Dynpro Applications, page 28) to apply custom Theme for WD, so I have a DEFAULT theme for all WD at portal and then change it for some WD.

So, on the steps of page 12, I indicate the parameter:

sap-cssurl=http://host:port/webdynpro/resources/sap.com/tcwddispwda/global/SSR/themes/sap_chrome

but no Theme seems to be applied for this WD.

Any suggestion, idea will be welcome.

RLS.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

public void wdDoInit()

{

//@@begin wdDoInit()

String cssParam = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("sap-cssurl");

if (cssParam == null) {

try{

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

String themeURL = WDURLGenerator.getApplicationURL(currentAppPart);

themeURL = themeURL "?sap-cssurl=" cssParam;

}catch(Exception e){

wdComponentAPI.getMessageManager().reportSuccess(e.toString());

}

}

//@@end

}

Then I integrate my app into SAP Portal, display the "Property Editor - <iView name>" and complete the "Application Parameters" input with sap-cssurl=http://host:port/webdynpro/resources/sap.com/tcwddispwda/global/SSR/themes/sap_hcb

<u>and it works! but if I change the theme</u> (change sap_hcb for sap_chrome) <u>the theme doesn't change....seems to be stuck....no matter if I open the app in a new browser instance. Happends the same if I clear the parameters input</u>

What I'm missing?

Thanks.

RLS.