Go Back   Forum - BIRT Exchange > Designing BIRT Reports Forums > Designing BIRT Reports

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-06-2009, 07:00 AM
Junior Member
 
Join Date: Apr 2009
Posts: 9
Default How to change a imagem by condition

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.
Reply With Quote
  #2 (permalink)  
Old 07-06-2009, 09:16 AM
Senior Member
 
Join Date: May 2008
Posts: 4,469
Send a message via Yahoo to mwilliams
Default

Hi synrbc,

Check out these posts from the devShare:

BIRT: Dynamic Images - Tips & Tricks - BIRT Exchange

BIRT: Dynamic Image Examples - Designs & Code - BIRT Exchange

Hope this helps.
__________________
Regards,

Michael
http://twitter.com/mwilliams_actu
Reply With Quote
  #3 (permalink)  
Old 07-06-2009, 10:11 AM
Junior Member
 
Join Date: Apr 2009
Posts: 9
Default

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:\Workspace\ActuateJavaComponent)

By the examples, i cant find where i mistake.

Where can I set the folder where the images are?

Thanks for all
Reply With Quote
  #4 (permalink)  
Old 07-16-2009, 07:35 AM
Junior Member
 
Join Date: Apr 2009
Posts: 9
Default I done

I understood the explanation.

Thanks for all.
Reply With Quote
Reply


Thread Tools
Display Modes




All times are GMT -7. The time now is 10:10 PM.
Powered by vBulletin Copyright © 2000-2010 Jelsoft Enterprises Limited.


Content Relevant URLs by vBSEO 3.1.0