Skip to main content
1-Visitor
April 10, 2017
Question

How to use Select in ThingWorx Studio

  • April 10, 2017
  • 1 reply
  • 1453 views

Hi,

     I have a Select widget, i want to populate data on it. I don't know the format of data. i want to get the data from any function(let's say getData()). when a button is clicked it should call the function, get the data and populate the Select widget.

Thanks and Regards,

Qadir

1 reply

15-Moonstone
March 11, 2019
$scope.view.wdg['select-1']['list'] =[ {"color":"Red"}, {"color":"Green"}, {"color":"Blue"} ]; $scope.view.wdg['select-1'].valuefield = "color"; $scope.view.wdg['select-1'].displayfield = "color";