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

How do I turn an array into a table?

Highlighted
Newbie

How do I turn an array into a table?

How do I turn an array into a table? One property name with values.

4 REPLIES 4
Highlighted

Re: How do I turn an array into a table?

Hello Rami,

Where do you get this Array and how will you use it?

There is no Array type in Thingworx Base types, so you cannot use the Array as input or output of the script, and you can only write a Array inside the script and not able to change it. If so, you could use a for loop to activate the AddDataTableEntries service to transform the data.

If you change the Array to JSON file, then you can change the data into infotable format freely, and then store them inside a Datatable.

Highlighted

Re: How do I turn an array into a table?

Hello Ryan,

I am receiving the array from java code that is sending the data to Thingworx through REST.

Do you have any links of how I would be able to change the data into infotable format?

Thnak you

Highlighted

Re: How do I turn an array into a table?

I am trying to place it into a grid widget possibly.

Highlighted

Re: How do I turn an array into a table?

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!