Showing image from an Image field in a Jelly page

andersba
Giga Contributor

I have a table with some text fields and an Image field. On my Jelly page, I can pull records from my table and show the text columns just fine - ${gr.u_name} and the like. I cannot for the life of me figure out how to display the image field. ${gr.u_image} just shows up as nothing. I've also tried combinations like and ${gr.u_image.url} and pretty much anything else I can think of. How do I show my u_image field's image?

5 REPLIES 5

luisesparza
Kilo Contributor

Well... judging for the dates in the comments it seems that I've arrived a little late. However I'd like to share this with you guys:


I queried the 'sc_cat_item' table for the records I needed to display and in order to show the picture I used the getDisplayValue() function, like this:



<img src="${cat_gr.picture.getDisplayValue()}" width="110" height="202"/>



and it worked just fine. (cat_gr is the GlideRecord object I used for querying the table)



I hope this is useful for someone in the future.