cancel
Showing results for 
Search instead for 
Did you mean: 

Custom WD Theme -> Java Script Error: no SVS (DropDownBoxes), no date navig

0 Kudos

Hello,

we have a problem with a custom Web Dynpro Theme. Our Web Dynpro applications are running on WAS 6.40 SP12 (in EP 6. SP2; Patch 32): SAP ESS/Mss scenarios and

custom development Web Dynpro applications. The visual design of Web Dynpro Applications should be modifies by creating a new Theme.

We created a WD Theme with the Eclipse Plugin, as in following SDN article:

"Colourful WebDynpro applications": https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/co... webdynpro applications.pdf

We copied the folder "networking_wd" with the new Theme to /usr/sap/DVEBMGS03/j2ee/cluser/server0/temp/webdynpro/web/sap.com/tcwddispwda/global/SSr/themes/networking_wd

and changed the following settings on our J2EE Engine (WAS 6.40 SP12 running on HP-UX 11) in Visual Admin:

- property: sap.useWebDynproStyleSheet=true

- property: sap.theme.default -> Custom Setting: http://<our_server_name>:50300/webdynpro/resources/sap.com/tcwddispwda/global/SSR/themes/networking_wd

- restart of J2EE Engine

After performing the steps mentioned, all date navigator (value help for date input fields) and all drop down

boxes in all Web Dynpro applications are unusable: a Java Script error occurs on every screen:

access is denied.

Line: 113

Error: access is denied

Code: 0

URL: http://<our_server_name>:50300/webdynpro/dispatcher/sap.com/ess~vertr/VertreterApp

If we call a application with the SAP Standard Theme, the Java Script errors won't be there:

Example:

http://<our_server_name>:50300/webdynpro/dispatcher/sap.com/ess~vertr/VertreterApp

-> Java Script Error on page (with our new Web Dynpro Theme)

if we call it with the SAP Standard Theme by adding the parameter sap-cssurl, it works correct:

http://<our_server_name>:50300/webdynpro/dispatcher/sap.com/essvertr/VertreterApp?sap-cssurl=http://re3db.metro.de:50300/webdynpro/resources/sap.com/tcwd~dispwda/global/SSR/themes/sap_standard

Thanks for any hints.

Best regards,

Daniel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

As a first step, ensure that your theme and theme editor that you installed is the SP12 package.

Walter

Answers (2)

Answers (2)

0 Kudos

Hello,

we fixed the problem with the Java Script errors ("access is denied"):

Setting in Visual Admin -> Configuration Adapter -> tcwddispwda -> Property Sheet default -> sap.theme.default -> wrong setting:

http://ourserver.domain-sap.de:53000/webdynpro/resources/sap.com/.

correct setting (same domain seems to be very important!!):

http://ourserver.domain.de:53000/webdynpro/resources/sap.com/.

(in our portal the name http://ourserver.domain:53000 will be used, too) -> it works fine now.

Regards, Daniel

Former Member
0 Kudos

Just FYI:

This error is called cross-domain scripting: browser prevents executing script loaded from other domain then page itself, and WD themes have a lot of scripts.

VS

Former Member
0 Kudos

I am having the same issue

What custom value should I enter for this property.

Setting in Visual Admin -> Configuration Adapter -> tcwddispwda -> Property Sheet default -> sap.theme.default

Regards,

Vishal

Former Member
0 Kudos

Hi,

I rememeber givin the links for sp12 download in my article.

If I am not wrong sp 11 Theme editor has this problem.

Going to sp12 should fix this

http://sapmats-de.sap-ag.de/download/download.cgi?id=1979MBH6BK6113CFUVAGAIS67J11E6DI8N5KOZ9UWARJ3RY...

Regards

Bharathwaj