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

How can field values be read from an infotable?

SOLVED
Level 8

How can field values be read from an infotable?

I'm trying to set the values of a newly created property using value that exist in an external infotable:

var location = new Object();

location.latitude = Things[networkAssetName].location;

location.longitude = Things[networkAssetName].location;

location.elevation = 0;

location.units = "WGS84";

These are the result i'm seeing from the above code.

How can i access the correct columns of the infotable?

Thanks,

Andy

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How can field values be read from an infotable?

Solution:

for separate values:

var latitude = Things[networkAssetName].location.Location.latitude;

var longitude = Things[networkAssetName].location.Location.longitude;

var infotable = Things[networkAssetName].location.Location;

2 REPLIES 2

Re: How can field values be read from an infotable?

var elevation=Things[networkAssetName].location.latitude;

var longitude=hings[networkAssetName].location.longitude;

Re: How can field values be read from an infotable?

Solution:

for separate values:

var latitude = Things[networkAssetName].location.Location.latitude;

var longitude = Things[networkAssetName].location.Location.longitude;

var infotable = Things[networkAssetName].location.Location;