Hello,
We have a feature set we are trying to iterate through to add text to a popup. However, when we try to loop through it, it appears to only be accessing one item in the set multiple times.
var related_data = Filter(evtsummary, sql);
var cnt = Count(related_data);
var evtlist = []
Console(cnt)
if (cnt > 0) {
for (var feat in related_data){
Console(Text(feat))
Push(evtlist,feat.name)
}
return Concatenate(evtlist,"\n")
} else {
return "-"
}
cnt is showing a value consistent with the number of records we expect to see in our testing, but the Console log on line 8 is just the same feature {cnt} times. Every other step along the way the data is returned as expected. I cannot find any information on how to view the related_data object in the console to confirm it isn't just the same record multiple times. Any help would be greatly appreciated.
Joe