Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
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
Solved! Go to Solution.
Solution:
for separate values:
var latitude = Things[networkAssetName].location.Location.latitude;
var longitude = Things[networkAssetName].location.Location.longitude;
var infotable = Things[networkAssetName].location.Location;
var elevation=Things[networkAssetName].location.latitude;
var longitude=hings[networkAssetName].location.longitude;
Solution:
for separate values:
var latitude = Things[networkAssetName].location.Location.latitude;
var longitude = Things[networkAssetName].location.Location.longitude;
var infotable = Things[networkAssetName].location.Location;