Skip to main content
1-Visitor
October 6, 2016
Question

how to change picture in the image widget inside mashup?

  • October 6, 2016
  • 3 replies
  • 2904 views

please help. Need to change the image inside the mashup by pressing a button?

3 replies

1-Visitor
October 6, 2016

Hi

There is no any bindings available for button and a image widget ,i guess can be done but you need to have

the storage location for Thingworx media entities (if there are static images) in datatable or make repository to store the images and then access them,

for instance as ServerUrl+"MediaEntities/ImageName" (if they are thingworx media and not repository created media /files) .

The next step would be to have service which will loop through all

datatable entries , the result of this service will be url , but it should be random Url , rand(imageUrl) .

Then Bind the result to textbox , then bind the textbox text value to image widget as Source Url , this

service will invoke on Button Click

Let me know if it sounds good to start ..!

Nilesh

1-Visitor
October 6, 2016

ValueDisplay widget can display an image, and data it's bindable

1-Visitor
October 6, 2016

Yeah .. you got that Carles .