Arcade: so simple even I can do it

Arcade is the relatively new programming language used in ArcPro, and your various AGOL (ArcGIS On-Line) applications; Experience Builder, Dashboard, Map Viewer and Field Maps.

Almost all of these code samples come from various users, programs and/or articles and blogs. I’ve found the following YouTube channels particularly useful.

Eric (ESRI Industries) – for samples on building related tables, building a dashboard and working with the data within Field Maps and Map Viewer. Breaks down table relates in a simple and easy to use manner. (click here to see resource)

Mark Ho (ESRI Canada) – one of the best resources for using Arcade within the Dashboard and ArcPro environments. (click here to see resource)

From creating a simple calculation:

The following calculation generates the ‘average’ of assessment data


var difference = $datapoint.avg_NEW_ASSESSMENT-$reference.avg_Old_Assessment_mod;

to more complex calculations:

The following piece of code will extract information from another feature class and populate the table you’re working with:

var owner=FeatureSetById($map, “187b3a7a0dc-layer-5”)

var ownername=Intersects($feature, owner)

var ownerlist = ”

for (var k in ownername)

{ownerlist += k.TitlesEx_7}

ownerlist

I’ll get into the detail for each of the scripts I use, what their purpose is, how they’re used in the organizations I’ve worked for and try to show you their function and how the code changes what the user is interacting with.