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)
Image not displaying
RB001
Hi,
I have created a report layout using a Scripted Data Set that contains four output columns (2)Strings (1)Integer (1)Blob/Image:
The Strings and integer display as expected but the Blob/Image does not. The Alternative Text displays for the image.
The call made from the fetch script is executed and as-far-as the image is concerned I have returned the image to the report as an Object, an org.eclipse.swt.graphics.Image and org.eclipse.swt.graphics.ImageData, to no avail.
As a test I instantiated the class used by the report and call the same get method the fetch script calls and was able to display the image in a views composite.
I have included the Open and Fetch script below.
Thanks rb001
My environment:
Eclipse 3.4.1
BIRT 2.3.1
OSX 10.5.5
Script
Open
importPackage( Packages.org.eclipse.core.runtime );
bundle = Platform.getBundle("an.rcp.plugin");
theClass = bundle.loadClass("an.rcp.plugin.reports.TheClassCalled");
anInstance = TheClassCalled.newInstance();
count = 0;
return false;
Fetch
if(count < 1){
count++;
row["report_string1"] = anInstance.getString1();
row["report_image"] = anInstance.getImage();
row["report_integer1"] = anInstance.getInteger1();
row["report_string2"] = anInstance.getString2();
return true;
}
return false;
Find more posts tagged with
Comments
RB001
I decided to post this as a bug via Eclipse and got some information I thought I'd pass along here.
--- Comment #1 from wei yan 2008-11-23 22:13:55 -0400 ---
the image expr should return a byte[] which contains the image data.