AnsweredAssumed Answered

Customize popup using Arcade to loop through a text column

Question asked by rtansley on Sep 28, 2017
Latest reply on Nov 26, 2017 by xander_bakker

Hi, I am looking for help on using Arcade to display complicated information in a popup in ArcGIS Online. I have complete control over my data and can modify it to work within the limitations of Arcade.

Currently Arcade can't access the information of related tables, so I got rid of the related tables and put all the information in one column in the main table with all the related information within the one column. Currently I am using JSON format to handles the relationships, but I can change this if anyone has other suggestions. Example JSON below (though it is minimized to 1 line in the table).

Can Arcade loop through this? I have tried and so far I just get a loop through each letter. I can reformat the string any way to make it more easily parsed.

Thanks in advance!


[{
"Type": "Complex",
"OBJECTID": "000000",
"Relationship1": [{
"TYPE": "Type1",
"OBJECTID": "111111"
},{
"TYPE": "Type2",
"OBJECTID": "222222"
}],
"Relationship2": [{
"TYPE": "Type1",
"OBJECTID": "333333"
},{
"TYPE": "Type2",
"OBJECTID": "444444"
}],
"Relationship3": [{
"TYPE": "Type1",
"OBJECTID": "555555"
},{
"TYPE": "Type2",
"OBJECTID": "666666"
}]
}]

Outcomes