cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro Themes in Abap Stack

Former Member
0 Kudos

Hi,

I made themes with theme editor and applied them in standalone WD Java applications via url-parameter "cssurl". Now I want to take these themes for standalone WD Abap applications.

How I can do this?

Kind regards, Claudia

Accepted Solutions (1)

Accepted Solutions (1)

thomas_szcs
Active Contributor
0 Kudos

Hi Claudia,

You can either use sap-cssurl or sap-ep-themeroot depending on the format of your url. Before using it, you need to register the URL to the server for security reasons in table http_whitelist. There should be some documentation about this as well.

Best regards,

Thomas

Former Member
0 Kudos

Hi,

here's the link to the documentation about the HTTP white list: http://help.sap.com/saphelp_nw04s/helpdata/en/68/e69d423cb70c31e10000000a1550b0/frameset.htm

Regards, Heidi

Former Member
0 Kudos

Hi Thomas:

When NW2004s goes from rampup to GA there are going to be lot of companies who will be developing applications with WDA but deploying it to NW2004 Portal.

For the WDA iviews to render correctly, we have to create WDA iViews without any Stylesheet and the stylesheet comes from the backend.

It will be great if SAP can come up with a Weblog for Web Dynpro for ABAP on how to modify the stylesheet in the backend and make it available for the WDA applicaiton.

Thanks

Venkat

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I linked my custom-theme to my standalone WD Abap applications via parameter sap-ep-themeroot and the most of design-settings of the custom-theme are interpreted correct in the browser.

But there is still the problem in interpretation of one setting: the STANDARD FONT SIZE (0.7em) within LABELS from input-fields, radio-buttons, checkboxes and other. The STANDARD FONT SIZE within LABELS is displayed LARGER than 0.7 em. Other UI elements, how accessing also to STANDARD FONT SIZE, i.e. text-views, shows the size correct. When I link the same custom-theme to standalone WD Java applications all design-settings of the custom-theme are interpreted correct, including STANDARD FONT SIZE within LABELS.

Can I do something or is this a bug?

Kind regards, Claudia

szymon_bolek
Participant
0 Kudos

Hello,

Can You help me with WDA Themes. I have already tried the

BSP_UPDATE_MIMEREPOS

sap-cssurl

sap-ep-themeroot

but nothing seemds to work.

regards

Simon

Former Member
0 Kudos

Hi Claudia

The problem is that you have used the parameter sap-cssurl but the value is a theme ("http://HOSTNAME:PORTNUMBER/sap/public/bc/ur/nw5/themes/THEMENAME"). If you will use the parameter sap-ep-themeroot it should work.

Hope this helps

best regards

Aiga

Former Member
0 Kudos

Hi Aiga,

thank you very much. It seems that it work.

Some parts of my custom-theme are not interpreted correctly, for instance the "Standard Font Family". Other parts are correct, like "Background Color of Application".

May be, because I created it in Theme Editor for NWDS and imported it in MIME repository.

Kind regards, Claudia

Former Member
0 Kudos

Hi Thomas,

thanks for your tip with HTTP_WHITELIST. The problem is, I have 700SP01

but HTTP_WHITELIST has been added in 700SP03. But that’s not the main problem.

I thought, HTTP_WHITELIST is only a security feature and if there is no HTTP_WHITELIST

any URL can pass the server?

I tried the following URL:

http://HOSTNAME:PORTNUMBER/sap/bc/webdynpro/sap/APPNAME?sap-cssurl=http://HOSTNAME:PORTNUMBER/sap/pu...

(Theme was uploaded to mime repository, all services in ICF are active).

It dos’nt work.

Curious is, when I try to call something within the theme folder it works, for instance a GIF:

http://HOSTNAME:PORTNUMBER/sap/public/bc/ur/nw5/themes/THEMEFOLDER/common/tabstrip/tab_ang_off_off.g...

It seems, the THEMENAME can not be resolved by the server or there is no mechanism,

how application and theme are work together.

Kind regards, Claudia