Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Chart Interactivity Script Invocation
Migrateduser
<p>I have created a report which contains a bar chart and have written a script which executes when any of the bars is clicked. When I render the HTML for the report using the Eclipse designer, parts of the JavaScript code have been replaced with the text 'null', making the script unusable. Below is an example</p>
<p> </p>
<p>A JavaScript function in the script:</p>
<div> </div>
<div>function transformToAssocArray( prmstr ) {</div>
<div> var params = {};</div>
<div> var prmarr = prmstr.split("&");</div>
<div> for ( var i = 0; i < prmarr.length; i++) {</div>
<div> var tmparr = prmarr
.split("=");</div>
<div> params[tmparr[0]] = tmparr[1];</div>
<div> }</div>
<div> return params;</div>
<div> }</div>
<div> </div>
<div>The JavaScript function after the report is run and rendered to HTML:</div>
<div><br><div> </div>
<div>function transformToAssocArray( prmstr ) {</div>
<div> var params = {};</div>
<div> var prmarr = prmstr.split("&");</div>
<div> for ( var i = 0; i < prmarr.length; i++) {</div>
<div> var tmparr = prmarr
.split("=");</div>
<div> nullparr[1];</div>
<div> }</div>
<div> return params;</div>
<div> }</div>
</div>
<div> </div>
<div>Notice how the first part of the entire fifth line has been replaced with "null".</div>
<div> </div>
<div>This appears to be a bug. If not, how do I prevent this from happening? Any help with this would be much appreciated.</div>
<div> </div>
<div>I attached a sample report using the Classic Cars, Inc. database which demonstrates the problem.</div>
Find more posts tagged with
Comments
There are no comments yet