3.2.0

dynamic image

I was looking around to replace a value for an image. I have a relations-table with two types of relations: private (id=1) and company (id=2). What I would like is to replace the id for an image (1.png and 2.png) in the first column. What I have so far is:

obj.setCellTemplate(new AW.Templates.ImageText);
obj.setCellText('<img src="/_img/'+obj.getCellValue(0, 1)+'.png">', 0);


Unfortunately this does not work. Can somebody tell me what I am missing here?
RG
September 10,

This topic is archived.

See also:


Back to support forum