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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

How can field values be read from an infotable?

aseaton
7-Bedrock

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
aseaton
7-Bedrock
(To:aseaton)

Solution:

for separate values:

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

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

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

View solution in original post

2 REPLIES 2
wposner-2
12-Amethyst
(To:aseaton)

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

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

aseaton
7-Bedrock
(To:aseaton)

Solution:

for separate values:

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

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

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

Top Tags