• Bryan Kong
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Controller code:
component.set('v.columns', [ { label: 'formulafield', fieldName: 'formulafield__c', type: 'text', initialWidth: 350, editable: false, sortable :true }, ]);

Formula field :
IMAGE('/sfc/servlet.shepherd/version/download/'+Campaign_Image_Content_Version_ID__c, 'Preview of Marketing Campaign',200 ,-50)

out put in the lightning component:
<img src="/sfc/servlet.shepherd/version/download/" alt="Preview of Marketing Campaign" style="height:200px; width:-50px;" border="0"/>

The above code is displaying the URL in the lightning dataTable instead of the actual image. Image is choosen according to different criteria in the formula field. I need to show the actual image instead of the URL. Please help .