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
[ 2.6.2 ]Function in javascript file not recognized
Migrateduser
Hello,<br />
<br />
I've created a file "functions.js" that I put in a "JS" folder in my workspace resource folder. I added this file in the Resources part of a rptlibrary ("JS/functions.js"). <br />
<br />
I use a function defined in the JS on a library object. Finaly I add the objet to a rptdesign, the js file is automatically added in the Resources part ("JS/functions.js") of the rptdesign but when I generate the rptdesign, I have an error message telling me that <br />
<br />
"ReferenceError: "formatStuff" is not defined at line 8 of chart script:'' <br />
<br />
Function : <br />
<pre class='_prettyXprint _lang-auto _linenums:0'>function formatStorage( value )</pre>
<br />
Used in a chart object : <br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>value = formatStuff(value);</pre>
<br />
Do I have to import the js somewhere else ? Include something so that it works ?<br />
<br />
Thanks in advance.<br />
<br />
Edit : I checked, and I have <br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'><list-property name="includeScripts">
<property>JS/functions.js</property>
</list-property></pre>
<br />
In the rptdesign XML so I really don't understand why my functions are not recognized -_-
Find more posts tagged with
Comments
There are no comments yet