Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to change a imagem by condition
synrbc
Hello.
I try to change one image im my report.
I have one data (row["MyData"]) and i want change the image when my data change status, for exemplo:
if (row["MyData"] == "OK"){
//here is the problem, how to the display the image?
display image = "OK.png"}
else
display image = "Bad.png"
I dont know how i do it...
I try to use Embed Image, Image URI and dont have sucess...
Thanks for all.
Find more posts tagged with
Comments
mwilliams
Hi synrbc,<br />
<br />
Check out these posts from the devShare:<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/devshare/designing-birt-reports/260-birt-dynamic-images/#description'>BIRT
: Dynamic Images - Tips & Tricks - BIRT Exchange</a><br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/devshare/designing-birt-reports/324-birt-dynamic-image-examples/#description'>BIRT
: Dynamic Image Examples - Designs & Code - BIRT Exchange</a><br />
<br />
Hope this helps.
synrbc
Hi.
I saw the examples, but, i still have one doubt:
See my case...
I created one computed column "Test":
if (row["ORG"] == 1) {
this.file ("nav_unlock_down.gif");
}
else {
this.file ("nav_safe_easy_down.gif");
}
And, i created one data in my table to call Test: "Data" -> row[Test]
But, the report does not show the image, show a red cross.
Tha images are inside the same project (C:WorkspaceActuateJavaComponent)
By the examples, i cant find where i mistake.
Where can I set the folder where the images are?
Thanks for all
synrbc
I understood the explanation.
Thanks for all.