Is there a way in the Arcade Labeling profile to access the objects related to a feature?
Hi Theodore Rakel, Jeffrey Owen, and Lindsy Hales Bentley
I have come up with a solution to symbolizing from a related table in my post:
Symbolizing Feature Class using related table values
https://community.esri.com/thread/215046-symbolizing-feature-class-using-related-table-values
There is a 17 page word document with details on how to accomplish this.
If the related table is published using a relationshipclass, this will be standard functionality that does not requiere any Arcade expression.
The FeatureSetBy* functions in Arcade allow you to create these relations using filters connecting to a table or analyze a spatial relationship between two or more hosted feature layers.
Thanks Xander. That is some great stuff.
What if I only want to show a pipeline and it's related table in the popup?
Yes there is an update. In the december update of ArcGIS Online, an couple of new functions were introduced (FeatureSetBy*) which allow accessing related content (being present in the map or in the same datastore). A couple of resources that you might be interested in are:
The downside is that these functions are not available in the label expression nor in defining the symbology. However, you could create a new field and do the field calculation to access the related content and define the text for the label and label the layer based on that new field. This is not a good option if your data is very dynamic and changes a lot (since it would require you to recalculate the field).
I came here with the same question - is there any update on how to do this?
And also I forgot to mention that I also see related layer/table info available in the Chart configuration at the bottom of that first screenshot.
This might not be what you are looking for but it worked somewhat for me since I only want the count of related features.
Go into the Configure pop-up menu. There you will have the option all the way at the bottom to "Show related data" which will put a hyperlink in the popup that will open the attribute table of the related features. But also you can click the "Configure Attributes" link.
Then you should see the related table attributes but it only appears to allow you to display a count (which again is what I needed).
Can you share how you were able to access related feature information in the pop-up configuration in ArcGIS Online? I don't see how to do that. Thanks.
I came here to ask this exact question. Let me know if you figure anything out. I want to label or symbolize based on the number of related features. I found you can access related feature information in the pop-up configuration (ArcGIS Online), but not the labeling expression (or at least what I could figure out.)
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.