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

How to use List in ThingWorx Studio

  • April 10, 2017
  • 1 reply
  • 5250 views

Hi,

     I have a list 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 list.

Thanks and Regards,

Qadir

1 reply

5-Regular Member
April 11, 2017

Qadir, The data format can be of infotable or json type. Please follow the tutorial video on how to use List widget - Studio - Using List Widget - YouTube.

FYI, here is the complete playlist of tutorials - ThingWorx Studio - YouTube

Thanks,

Giri

qumar1-VisitorAuthor
1-Visitor
April 14, 2017

Hi Giri, I have created an application parameter listval which holds  [{"val":"test1"},{"val":"test2"},{"val":"quadir"},{"val":"umar"}] values in json format. I bind it with my list and choose binding target property as list. I save and preview the project, Nothing is appearing in my list. list.PNG

binding target.PNG

17-Peridot
July 6, 2018

Hello, 

 

I had the same issue too.

 

Select Widget doesn't accept json list format.

It uses only INFOTABLE format provided by ThingWorx.

 

So, the solution is to create a Thing and a Property with an INFOTABLE Base Type.

 

Please refer to this article to have the steps to apply this solution :

 

Best regards