Skip to main content
Jun 8, 2021 7:04 AM UTC
Solved

How to expand image in a "valuedisplay " widget.

Hi Developers,

I added a "valuedisplay" widget to display image dynamically but image size is small even though I configured the setting to "show image scaled to width".

Could anyone tell me on how to expand an image in the widget ?

キャプチャ3.PNG

 

キャプチャ.PNG

キャプチャ2.PNG

 

abjainAnswer
Jun 8, 2021 9:43 AM UTC

@Yoshihiko.N SourceURL attribute can be used for setting images dynamically in image widget. Please refer: https://www.ptc.com/en/support/article/CS208841

 

3 replies

Jun 8, 2021 8:14 AM UTC

@Yoshihiko.N You can try increasing the container size for the value display widget by giving the MaxHeight and MaxWidth properties. Alternatively you can use image widget to display images on mashups.

Jun 8, 2021 8:36 AM UTC

Thank you for your super quick response !

 

>by giving the MaxHeight and MaxWidth properties

-> I can do what I want to do. ( ^o^ )

 

>Alternatively you can use image widget to display images on mashups

-> I tried this but not sure how I can set image dynamically.

we need to set media (image link ) to the image widget but I don't know how I can get image link from media entities.

abjainAnswer
Jun 8, 2021 9:43 AM UTC

@Yoshihiko.N SourceURL attribute can be used for setting images dynamically in image widget. Please refer: https://www.ptc.com/en/support/article/CS208841