Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Prototype.js and CrystalReports conflict

$
0
0

Hi,

 

I have Visual Studio 2010 with Crystal Reports 13.0.2000.0 installed on a Windows 7 machine.  For testing purposes, I've gone up to the current 13.0.5 version, as well as all versions in between.  They all give me the same result, described below:

 

I'm having the same problem as this person in a thread dated back to 2010 with no apparent answer: http://scn.sap.com/thread/1785719

Whenever I include the prototype.js file on any page that has a CrystalReport, the page fails to load and I receive a javascript error stating "Object doesn't support property or method 'getHTML'". It comes from this function, which I cannot find anywhere in my project (I've bolded the line that errors):

 

function TreeWidget_getHTML(){

     var F=this,E=F.sub,A=E.length,B=new Array(A+3),C=0;B[C++]=F.beginHTML()+'<span id="treeCont_'+F.id+'"  >';

     for(var D in E){

          B[C++]=E[D].getHTML(F.initialIndent,D==0)

     }

     B[C++]="</span>"+F.endHTML();

     return B.join("")

}

 

If you ignore that error, you get this next error stating "Unable to get value of the property 'style': object is null or undefined".  It comes from this function and again I've bolded the line that errors:

 

function Widget_init(){

     var A=this;A.layer=getLayer(A.id);

     A.css=A.layer.style;

     A.layer._widget=A.widx;

     if(A.initialHTML){

          A.setHTML(A.initialHTML)

     }

}

 

Both errors appear in the file "AllInOne.js" that just seems to combine all the javascript of the application into one giant file.  But again, I can't find these functions in any javascript file I'm including in the project so I'm not even sure where they are coming from.

 

Anyone have any ideas?  I've been on this for three days, multiple uninstalls, reinstalls, version upgrades, etc.  I've gotten no where.


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>