Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » How to change embedded image for each row of table?
How to change embedded image for each row of table? [message #735399] Tue, 11 October 2011 16:57 Go to next message
Garey Smiley is currently offline Garey SmileyFriend
Messages: 13
Registered: July 2009
Junior Member
How to change embedded image for each row of table? In the onPrepare for the embedded image I have

this.imageName=embeddedArrow(this.getRowData().getColumnValue("MARGIN_UNIT_PERCENT_IMAGE"));


embeddedArrow() is a function that takes my database values and turns them into an embedded image name. It works for the first row, but all subsequent rows then get the same image. I put my embeddedArrow() function beside the image as text and I can see it's outputting the right embedded image name.

Any ideas? It seems like changing the imageName after the first row has no effect.

[Updated on: Tue, 11 October 2011 17:19]

Report message to a moderator

Re: How to change embedded image for each row of table? [message #735667 is a reply to message #735399] Wed, 12 October 2011 13:56 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you try it on the onCreate event? onPrepare only gets called once.

Jason


On 10/11/2011 12:57 PM, Garey Smiley wrote:
> How to change embedded image for each row of table? In the onPrepare for
> the embedded image I have
>
> this.imageName=embeddedArrow(this.getRowData().getColumnValue("MARGIN_UNIT_PERCENT_IMAGE"));
>
>
>
> embeddedArrow() is a function that takes my database values and turns
> them into an embedded image name. It works for the first row, but all
> subsequent rows then get the same image. I put my embeddedArrow()
> function beside the image as text and I can see it's outputting the
> right embedded image name.
>
> Any ideas? It seems like changing the imageName after the first row as
> no effect.
Previous Topic:Dataset - More than one parameter
Next Topic:Including parameter entry UI in a BIRT report
Goto Forum:
  


Current Time: Thu Apr 25 05:58:53 GMT 2024

Powered by FUDForum. Page generated in 0.04256 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top