Select to view content in your preferred language

Vary the feature symbology of a layer by the number of records linked to it

623
4
08-23-2022 04:35 AM
kavi88
by
Occasional Contributor

Hello,
I am very new to arcade.
Is it possible to vary the feature symbology of a layer by the number of records linked to it (the two data sources are linked by a 1:n relationship class)?
Thank you in advance.

@XanderBakker 

4 Replies
jcarlson
MVP Esteemed Contributor

In short, no. Arcade makes use of different profiles that vary in terms of what they can and cannot access. The symbology profile, in this case, cannot "look at" other features or layers, so you wouldn't be able to do this solely with Arcade.

If you need to do this kind of symbology, consider creating a calculated field for "number of related records", which you can then symbolize from.

- Josh Carlson
Kendall County GIS
0 Kudos
kavi88
by
Occasional Contributor

The downside is that this field will alter my schema and it will be static. So I will have to recalculate the field when the data changes....

0 Kudos
JohannesLindner
MVP Alum

It will alter your schema, yes. But you can define an Attribute Rule on the related table to update the count field when the data in the related table changes. See this comment for an example.

At the moment (and probably for the forseeable future), that's the closest you will come to what you want.


Have a great day!
Johannes
0 Kudos
jcarlson
MVP Esteemed Contributor

If your data "lives" somewhere that can't take advantage of attribute rules, it is also possible to write a really simple python script to handle this calculation and have it run at regular intervals.

- Josh Carlson
Kendall County GIS
0 Kudos