Showing image from an Image field in a Jelly page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2012 03:26 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2016 07:44 AM
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.