Skip to main content
1-Visitor
July 4, 2016
Question

Runtime Source URL property access of an Image widget

  • July 4, 2016
  • 1 reply
  • 3848 views

Hi everyone,

I am trying to access to the "Source URL" property of an image widget through a Thing service without success. Any idea on how to acomplish this?

I think it would be the same way to access to any widget property.

Greetings.

1 reply

5-Regular Member
July 5, 2016

Josue, widget properties are generally locked down to the Mashup builder stage. You can't access them through services. What you can do is build services around them, and feed in those properties through your service output.

For example, the Image widget's SourceURL property requires a form of text input to select the right media entity, so you can bind a service that outputs text to it. Or you can bind a text box to the same property and type in the name of your existing media entity or maybe list the entire selection of media entities on a List widget and bind the selected rows here, so any time you select a row, the image would change.

jserrano1-VisitorAuthor
1-Visitor
July 6, 2016

Thanks Aanjan, your ideas might be helpful. I'll try them up and let you know if it worked for the purpouse Im looking to archive.