How to change embedded image for each row of table? [message #735399] |
Tue, 11 October 2011 16:57 |
Garey Smiley 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 |
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02708 seconds