cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript Popup Error (CrystalViewerbobjInit)

Former Member
0 Kudos

<p>Hi,</p><p>I used Crystal Report with Eclipse. I have Crystal report file. I have JSP file which load Crystal Report file using ReportClientDocument and CrystalReportViewer method. I deploy my project to Tomcat 5.0.28. When I run it in IE, it display a javascript error messages: "A Runtime Error has occured. Do you wish to Debug? Line: 241 Error: Object expected". I noticed in view code in IE within body:- </p><p> <script type="text/javascript" language="JavaScript"><br /><!<br />addOnloadFunction(CrystalViewerbobjInit);<br />//><br /></script> </p><p>and, I could not find &#39;addOnloadFunction&#39; function in the code. How do I get rid of it? </p><p> I appreciate your help.</p><p>Thanks </p><p>PK </p>

Accepted Solutions (0)

Answers (1)

Answers (1)

robert_horne
Employee
Employee
0 Kudos

<p>This function is a Java Script function and should be found in a Java Script file in a folder called CrystalReportViewers inside of your web application. When you started this project did you start it as a "Dynamic Crystal Report Web Project". This would have included the CrystalReportViewers folder for you. Usually when you add a report to an existing web project the Crystal Report Facets should be added to the project. Maybe this didn&#39;t work for some reason.</p><p>Try starting again and see if you get a CrystalReportViewers directory in your project. <br /></p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>;

Former Member
0 Kudos

Hi,

 Thanks for reply back. I didn&#39;t start it as a "Dynamic Crystal Report Web Project" but "Blank Crystal Report". I follow exactly crystal report document "Configuring your web application"(http://devlibrary.businessobjects.com/BusinessObjectsXI/en/en/Viewers_SDK/viewerssdk_java_dg_doc/doc...). Is there another way to solve this problem like copy missing javascript to web application? If there is, Will you show me how to solve it? Now, I noticed that Printing the report is not working at all because there is some missing Javascript code.

 Again Thanks!!!

PK

SJohnson
Employee
Employee
0 Kudos

<p>As it appears that you are using Crystal Reports for Eclipse I would suggest using the tooling which ships with the product to ensure that the required runtime is installed correctly. You can follow the steps outlined in the following forum thread to add the JRC facet to your existing web application:</p><p><a href="/node/862"><u><strong>http://diamond.businessobjects.com/node/862</strong></u></a> </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) <br /><br /> <a href="http://www.eclipseplugincentral.com/Web_Links-index-req-ratelink-lid-639.html">Rate this plugin @ Eclipse Plugin Central</a> </p>

Former Member
0 Kudos

<p>Ok, I found the solution. I copied crystal report java library from eclipse to webapps and it worked. I think there is a bugs in crystal report java library from Crystal Reports XI CD.</p><p> Thanks</p>