Skip to main content
Jun 16, 2020 3:29 PM UTC
Solved

Thingworx mashup widget horizontal slider: input array of values

Hi,

 

I need to input an array of values in the horizontal slider widget, instead of defining min/max/step.

How can I achieve that ?

 

Thx.

PaiChungAnswer
Jun 17, 2020 1:38 PM UTC

Ahh sorry, that isn't possible

4 replies

Jun 17, 2020 1:05 PM UTC

A slider will not accept an 'array' or infotable directly.

If you are outputting an infotable and it is a single row, you can expand Data and take the individual values and bind those to min/max/value

If you are using a multirow infotable, you would use selected row(s) in a similar way

Selecting from Data (All Data) it always provides the 1st row.

 

Else you'd have to return three individual values, unless these values are properties, then you can also use getproperties

SBOAuthor
Jun 17, 2020 1:11 PM UTC

Hi,

it's not about the infotable data input manipulation, I am referring to making the slider allow selectable values only those that I choose.

 

Example:

currently the slider widget sets min/max/step (1/10/1) and the selectable values will be 1,2,3,4,5,6,7,8,9,10

I need to have the slider offer the user only the values 1,4,6,7,10

PaiChungAnswer
Jun 17, 2020 1:38 PM UTC

Ahh sorry, that isn't possible