how to dynamically select embedded image? [message #1082165] |
Thu, 08 August 2013 03:09  |
Eclipse User |
|
|
|
What would be the best way to get birt to dynamically switch images on a report?
The images are digital scans of users' signatures so they can't be browsable via a url.
I've tried embedding the signatures in my library MyLibrary and adding a grid report part that looks like
Yours sincerely
<default img>
For CEO
and setting putting the following code into the OnRender and OnCreate of the image
this.file = 'MyLibrary.default_signature.png';
and
this.file = default_signature.png';
and
this.imageName = 'MyLibrary.default_signature.png';
and
this.imageName = default_signature.png';
then adding my grid to my report
but the report just has a broken img placeholder when viewed in HTML and exported into doc
it works if i hardcode the embedded image link, but there are a few dozen users here and I need to have the signature of the current user show up when they bring up the report.
any tips?
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.48957 seconds