cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

dynamic image changing using java script to display media entities.

svisveswaraiya
17-Peridot

dynamic image changing using java script to display media entities.

Hi,

I wanted to display image on selection of list item.

Different images has to be displayed based on input.

Now I am able to achieve it using simple JS where i provide link of google image in result and keeping my base type as image.But is it possible for me to keep media entity in result? 

That is when input is passed the result image has to be fetched from media entity.

How can I achieve this?

Please provide some help.

 

Thanks,

V Shalini.

4 REPLIES 4

Use a ValueDisplay widget and just bind the image value to the ValueDisplay widget value property.

Hi Carles,

That is what I am doing right now, but I need to display the image from my media entitiy.

How can I do that?

You just need a service that returns the Image Media Entity url (or the infotable that fills the listwidget have a column with it's value)

Just to clarify a bit more, to build a MediaEntity Image URL you just need to add /Thingworx/MediaEntities/ in front of the MediaEntity name.

Announcements


Top Tags