Dynamic Image in BIRT

javi82
edited February 11, 2022 in Analytics #1
I want to add an image to my report that should depend on a condition. If the condition is true, an image must appear and if there is false the image would be different.
I follow the following steps (extracted of the document birtCrossTabTutorialAdvanced.pdf):

1.- I drag an image item from the palette to the layout.
2.- I select image from an URI and use the following expression in the field enter URI:

If (true) "image_1.gif" else "image_2.gif"

3.- On click OK, the following message appears:

The image cannot be loaded

An unexpected internal exception occurred. Please see log for detail.
Plug-in Provider:Eclipse.org
Plug-in Name:BIRT Designer UI
Plug-in ID:org.eclipse.birt.report.designer.ui
Version:2.2.1.r22a_v20071101
Error Code:Error.GUIException.invokedByUnexpectedException
Error Message:Caused by java.lang.IllegalArgumentException.

-I have tried to load the images separately ("image_1.gif" and "image_2.gif"), without condition, and do not have any problem.

-There is some way of doing something similarly in BIRT report desginer 2.2.1 or where the mistake can be?

Comments