Add Image to Column from URL Column Value Apex

Create a new interactive report based on SQL Query. Make sure the column where image is store is populated in the column ‘PHOTO’ of the table
Go to Columns > Column Formatting and add to HTML Expression below code

<img src="#PHOTO#" alt="Image Not Found" height="200" width="260">

– ‘PHOTO’ is the name of the column which holds URL for the image
– ‘height’ and ‘width’ is the size to which the image will be cropped
– ‘alt’ is the text which will be displayed if the URL is not valid
For “Report with Forms on Table”
Select the Item eg : P4_PHOTO
Change type to “Display Image” and settings to “Image URL stored in Page Item Value”

Category: ApexDatabaseUncategorized

Tags:

Leave a Reply

Article by: Shadab Mohammad