cancel
Showing results for 
Search instead for 
Did you mean: 

WebElements, Custom HTML and missing <!DOCTYPE>

Former Member
0 Kudos

In our Crystal Reports, we are using a combination of the WebElements library along with a custom HTML function library to display advanced HTML elements for parameter selection. Our custom HTML library contains some JQUERY UI components. We are using IE7. Our BO environment is R3 SP4.

The issue that I have encountered is that the JQUERY UI components require a valid <!DOCTYPE> specification to render correctly - such as <!DOCTYPE HTML> or <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> but from my research, the Crystal Report Viewer appears to not be adding a valid <!DOCTYPE> specification to its HTML stream (which most modern HTML always includes).

Without the presence of a valid <!DOCTYPE> specification, IE7 is rendering the HTML in a "BackCompat" mode instead of a "CSS1Compat" mode.

Any help in overcoming this issue - or getting SAP to add <!DOCTYPE> to the Crystal Report viewer - would be greatly

appreciated!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Ron,

did you get your system to add the <!DOCTYPE>? I am facing the same problem with SAP Bex Web Templates.

Thank you!

JWiseman
Active Contributor
0 Kudos

hi Felix,

if Ron doesn't respond to this with a solution i would suggest that you go to the [Ideas Place |https://cw.sdn.sap.com/cw/community/ideas/businessanalytics/crystalreports]and check to see if this has been submitted as an enhancement to the crystal reports viewer.

are you actually using webelements or are you using your own custom html on top of crystal reports? webelements is the function library [here|] and i monitor the forums for posts specific to that library.

customers have the ability to embed their own custom html code onto a report once they've activated the feature "pass-through html" but there's no official support for the code added on top of this feature.

if you are using webelements and crystal reports, what is the work flow that you are trying to accomplish? there are many different functions in the library that could help, so if you can describe how you want the end user interaction with the report to be, then let me know and perhaps there's a solution in the existing library.

jamie

Former Member
0 Kudos

Hello Jamie,

thank you alot for your suggestions. In detail i am facing the same problem described in this thread:

This thread and also my problem deals with DOCTYPE problems within BW 3.5 Web Application Designer using standard web templates. The websites are generated/rendered by a class called CL_RSR_WWW_ITEM_TEMPLATE which inserts javascript before the DOCTYPE tag.

One solution would be to change the standard class by:

1. Creating a new class inheriting from CL_RSR_WWW_ITEM_TEMPLATE

2. Overload the method RENDER, copy all code and concatenate at the end of the method the DOCTYPE element to the member n_sx_output-string

3. Adjust the setting of the default template within the table RSRRENDERERATR for the key REN_NAME=CL_RSR_WWW_ITEM_TEMPLATE, ATTR_NAME=NAME. Change the field VALUE from "CL_RSR_WWW_ITEM_TEMPLATE" to the new class.

This solution should work, but is kind of crappy and the risk for side effects on other renderings is too high.

I was not able to find the note mentioned in the posting of Joel Blackthorne. What does "customer note" mean?

I will also post this message within the other thread, because it is a little off topic here, i guess. Sorry for that.

Thanks again, Jamie,

Regards Felix

JWiseman
Active Contributor
0 Kudos

hi Felix,

sorry, i misunderstood what you're after.

the webelements function library found [here |] is only for crystal reports as is this particular forum.

hopefully someone on the BEx forums will be able to help you out.

jamie

Answers (0)