function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shuhbam SinhaShuhbam Sinha 

how to show image in aura lightning datatable salesforce

Hello,
I have a requirement to show Image in aura Lightning Datatabe column and this image field is a formula field which is using static resource to display the images . When I use this formula field in the lightning datatable i get the source url but not the image  like below :-
<img src="/resource/SmartActive" alt="Smart Active RX Logo" style="height:40px; width:90px;" border="0"/> 
How to show the exact image instead of source url. Please help me in this. I am using aura  not lwc here .Thanks in Advance.
AnkaiahAnkaiah (Salesforce Developers) 
Hi Shuhbham,

Refer the below link have solution for similar kind of ask.

https://salesforcecodex.com/salesforce/show-image-in-lightning-web-component-data-table/

If this helps, Please mark it as best answer.

Thanks!!
Shuhbam SinhaShuhbam Sinha
Hi Ankaiah,
Thank you for the comment but here i am using aura component not lwc . I mentioned in the question
mukesh guptamukesh gupta
Hi Shubham,

Please follow below url that's will cover your requirment:-

https://viewonreview.com/display-icon-in-lightning-datatable/

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh
Shuhbam SinhaShuhbam Sinha
Hi Mukesh,
I have gone through to this post but it talks about showing the utility icon that too standard one but i need to show images that are coming from one formula field. Could you please help me on this,
mukesh guptamukesh gupta
Hi Shuhbam,

Please follow below url:-

https://pritamshekhawat.wordpress.com/2020/05/09/hyperlink-formula-fields-in-lightningdatatable/


if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh
Shuhbam SinhaShuhbam Sinha
We can only include icons from this not the image. Thanks