Select to view content in your preferred language

Issues with Popup & Associated Tables

332
0
04-24-2023 12:38 PM
RVx_GaslineGiS
Occasional Contributor

I have a feature class with an associated table set up in Utility Network. I've been trying to access the data on that table through a popup using FeatureSetByAssociations - New Utility Network Arcade API to Work with Associations (2.5/10.8) (esri... for information.

 

However, all I get are null and zero count results. I tried the two below arcade snippets and am consistently getting zero counts or records. However, I'm able to check the Attribute pane and verify the points have associated table records (every point as a minimum of 1 record associated with it). The two snippets below should give something, but instead just output 0 associated records.

 

I've tried this with data connected directly to the oracle DB and  with feature layers published to Portal Enterprise (10.9.1) and then pulled back into Pro. Both had the same results.

 

var allContent = featuresetbyAssociation ($feature, "container");
var devRow = Filter(allContent, "ASSETGROUP = 'Meter'")
var result = Count(allContent);

if (IsEmpty(result) == True) {
    return "No Association"
} else {
return result
}
var allContent = featuresetbyAssociation($feature, "container");
var globalids = [];
var i = 0
for (var v in allContent) {
    globalids[i++] = v.globalId
}
var deviceCount = 0 
if (i >0) {
    var tbl = FeatureSetByName($datastore, "Pipeline Junction Object");
    var rows = Filter(tbl, "globalid in@globalids")
    deviceCount = Count(rows)
}
return{'errorMessage':deviceCount}

 

0 Kudos
0 Replies