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
Dynamic Image in Shared Resources
Migrateduser
<p>Hi all,</p>
<p> </p>
<p>I'm currently having an issue concerning "dynamic" images. Presently, I am setting an image to, by script, change to one of three files stored in the shared resources folder (or, home directory of the project as I understand it). When working on my local machine, all is well and good; the image will change dynamically. Here is the script on my image:</p>
<pre class="_prettyXprint _lang-js _linenums:1">
currValue = new Number(this.getNamedExpressionValue("currVal"));
pastValue = new Number(this.getNamedExpressionValue("pastVal"));
if (currValue > pastValue){
//we increased in value
this.URI = "img_redUp.png";
}
else if (currValue < pastValue){
//we decreased in value
this.URI = "img_greenDown.png";
}
else{
//we stayed the same
this.URI = "img_doubleArrow.png";
}
</pre>
<p>The image's resource file is initially set to " \ " , and I have tested this image by pointing it at the Shared Resources folder (" \ "), as well as a Folder titled "Resources" ("\Resources\"). </p>
<p> </p>
<p>My issue here, though, is when I publish my report to iHub. I have published the images to both the default Resource folder and a location relative to the report's original shared resources folder. Neither of these work, though. I'm really confused on how to access these images when the report is launched from iHub.</p>
<p> </p>
<p>Thanks for any help!</p>
<p>Larry</p>
Find more posts tagged with
Comments
There are no comments yet