View parent feature of table record in Map viewer

262
2
11-27-2023 11:39 AM
DavinShokes1
Occasional Contributor II

When I open the table for a table layer I can't tell which parent feature belongs to each record

DavinShokes1_0-1701113469741.png

 

How can I select this record highlighted above? How can I see it's parent record or even the attached photos?

I have configured the popup for this table layer to show the related parent feature. However, I can't figure out how to show the popup for table records within map viewer. Can you see the popup for table records?

DavinShokes1_1-1701113907774.png

Above it the Example popup seen while creating the popup. This shows that a popup would allow for viewing the parent record.

 

Thanks!

0 Kudos
2 Replies
gis_KIWI4
Occasional Contributor

@DavinShokes1 - You are right the pop-ups are not initiated when you select the table record. In fact, you cannot even "select" the table record.

Couple of way to solve the problem you are having.
If you are doing this one-off maybe solution 2 will be best suited. 


1) Add a calculated field to the child record that pulls the ID of the parent record. That way every time you create a child record it will stamp the ID of the parent record in there. 
You can use the Parent ID to search for the Feature. 

You'd use a FeatureSetByRelationship function.
An example - This returns the VegetationID attribute from the Vegetation Layer

var relatedrecords = FeatureSetByRelationshipName($feature, "Vegetation")
var cnt = Count(relatedrecords)
if (cnt > 0){ var info = First(relatedrecords)
  relatedinfo = info.VegetationID
}
return relatedinfo;

 

 

 

2) You could also simply create a joined view to see the Parent attributes

gis_KIWI4_0-1701119083912.png

Follow the steps in the Wizard to get a joined view. 
You can join the layer to the table the result of which will be a table with attributes from parent layer. 

gis_KIWI4_1-1701119466065.png

You could also do it the other way to join the table to the Layer. This will retain the spatial component and allow you to zoom/pan to the map. 

 

3) Create ExB app and use data actions to select the Parent object when you select the child record in the Query Widget or Search Widget.
More details here - https://community.esri.com/t5/arcgis-online-questions/is-there-a-way-to-make-an-arcgis-online-search...

Hope these help 🙂

 

 

 

0 Kudos
DavinShokes1
Occasional Contributor II

Thanks for these suggestions. They may be good workarounds until tables get better functionality in the map viewer.

0 Kudos