Skip to main content
1-Visitor
June 16, 2020
Solved

Thingworx mashup widget horizontal slider: input array of values

  • June 16, 2020
  • 1 reply
  • 1632 views

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.

Best answer by PaiChung

Ahh sorry, that isn't possible

1 reply

22-Sapphire I
June 17, 2020

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

SBO1-VisitorAuthor
1-Visitor
June 17, 2020

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

PaiChung22-Sapphire IAnswer
22-Sapphire I
June 17, 2020

Ahh sorry, that isn't possible