Skip to main content
5-Regular Member
November 18, 2023
Solved

Grid Advance display & img? HTML

  • November 18, 2023
  • 1 reply
  • 1713 views

I'm trying to display an image in a cell with the grid advance widget in ThingWorx 9.1.8.  I have a data table returning an HTML string for the image and the column set to HTML, but nothing is displayed.  I've verified the image name/source is correct.  I tried following this code...

https://community.ptc.com/t5/ThingWorx-Developers/Add-mashup-or-clickable-image-in-advanced-grid/td-p/681125

 

But no luck. Do you have any ideas?

 

EK_10370207_0-1700324606635.pngEK_10370207_1-1700324616051.png

 

Best answer by ShirishMorkhade_238755

@EK_10370207 , check whether appropriate runtime permissions are assigned to this media entity. Also, Column format should be 'With Formatting, Unsanitized (Not Secured)'

 

ShirishMorkhade_1-1700750902294.png

 

 

1 reply

16-Pearl
November 18, 2023

Hi @EK_10370207 ,

 

I am also using this feature at many places in our applications.

In the screen capture you shared, I noticed your forming url starting with in "/Thingworx/.......". However you will need to form the absolute URL like "http://Host:port/Thingworx/.......".

 

Hope this will solve your issue.

 

Regards,

Shirish

5-Regular Member
November 22, 2023

@ShirishMorkhade_238755 ,  thank you for the suggestion, but it still does not work for me.  Below is a screenshot of the infotable results.  It returns the full url, and resolves to a valid destination, but I don't see anything in the grid.

 

EK_10370207_0-1700661277756.png

 

16-Pearl
November 23, 2023

@EK_10370207 , check whether appropriate runtime permissions are assigned to this media entity. Also, Column format should be 'With Formatting, Unsanitized (Not Secured)'

 

ShirishMorkhade_1-1700750902294.png