Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Dynamic image with other text fields
umeshw77
I am posting old issue again with new title, hoping somebody can find a solution. The below snippet of code doesn't display the image, can anyone spot the problem here. ****<BR> <BR> <VALUE-OF> if (row["****"] == "Female"){ D:Workreportscheckbox-checked.bmp } else { D:Workreportscheckbox-unchecked.bmp } </VALUE-OF>-Umesh
Find more posts tagged with
Comments
mwilliams
Hi Umesh,
What is your reason for displaying your image this way rather than through a BIRT image element? Can you create a sample report where you have this set up so I can see exactly what you're doing? Thanks.
umeshw77
I am attaching the sample report file. Please look at line 230 onwards for the problem I am facing.
mwilliams
Umesh,
What version of BIRT are you using?
umeshw77
Mike, I have installed all in one - birt-report-designer-all-in-one-2_3_2_1.zip
-Umesh
mwilliams
Umesh,Try this:<pre class='_prettyXprint _lang-auto _linenums:0'>
<VALUE-OF format="HTML">var output = "3. **** Female:";
if (row["****"] == "Female"){
output = output + "<IMG src=" + "'D:/Work/reports/checkbox-checked.bmp'" + " alt='" + "'>";
} else {
output = output + "<IMG src=" + "'D:/Work/reports/checkbox-unchecked.bmp'" + " alt='" + "'>";
}
output = output + "Male:";
if (row["****"] == "Male"){
output = output + "<IMG src=" + "'D:/Work/reports/checkbox-checked.bmp'" + " alt='" + "'>";
} else {
output = output + "<IMG src=" + "'D:/Work/reports/checkbox-unchecked.bmp'" + " alt='" + "'>";
}
output;</VALUE-OF>
</pre>Should work as long as I copy and pasted it all over correctly, cause it worked for me.
Let me know.