showing image in the label

Hi there,

I want to show an image in a label in a list layout with around 100s reocrds. The image is stored in a directory in the hard disk.

I can write the following HTML which works perfectly.

<img src="file:///c:/temp/abc.jpg">

But if I store the whole image path in a global variable like the following, then the image is broken.

globals.url = "file:///c:/temp/";

the label HTML would be:

    <img src="%%globals.url%%%%file_name%%">

I think when I use the a data provider value as a part of the image source, it causes problem.

Please help me figure this out.

Thanks
Hameed

what do you get when you output the result to the debugger like:

application.output(%%globals.url%%%%file_name%%)
```.

BTW somewhere else there is a thread with an almost equal topic. Haven't really read it but it also deals with the mandatory parenthesis...[/code]

Hi there,

Sorry for the previous post. It works properly even with the field value as image source. I had missed out the one % symbol within the code.

Thanks,
Hameed