cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

How to use Select in ThingWorx Studio

qumar
1-Newbie

How to use Select in ThingWorx Studio

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 1
Swapnil_More
14-Alexandrite
(To:qumar)

$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";
Regards,
Swapnil More
Top Tags