Hi,
I'm trying to show related records in a pop-up. According to this blog ( https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/rolling-out-related-records-in-map... ) article, I should be able to do this, but for some reason I do not have the option to "Add Content - Related Records". See screenshot below. Can anyone explain what might be going wrong here??
Here are the details on the webservice I am using. I can view the features, and modify the features fields in the pop-up. Just no access to the related table for some reason.
ArcGIS REST Services Directory | Login | Get Token |
Home > services > Works > Valves_Over_Inspections (MapServer) | Help | API Reference |
JSON | SOAP |
Do you have a relationship set up with that specific layer? If you click on the "Valves Over Inspected" layer, does that page contain a list of relationships? For example, this layer has several relationships set up.
Yes, both the Valves Over and the Valves Under have a related table:
@BrianBulla @KenBuja Related records from ArcGIS Server services are still not supported in the map viewer, surprisingly and unbelievably! You still have to use the classic map viewer to do so.
I can view related records in a popup using the Map Viewer. For example, using the service in my previous message, I built a popup to show the information from a related table.
var rec = First(FeatureSetByRelationshipName($feature, "DCGIS.ITSPE", ['BIDNAME', 'BIDTOTALDUE', 'BIDCOLLECTED', 'BIDBALANCE']));
if (IsEmpty(rec.BIDNAME)) return 'Not a BID';
return `${rec.BIDNAME}
• Total Due: ${Text(rec.BIDTOTALDUE, '$#,###.00')}
• Collected: ${Text(rec.BIDCOLLECTED, '$#,###.00')}
• Balance: ${Text(rec.BIDBALANCE, '$#,###.00')}`
@KenBuja Sure, you have to use arcade expressions to do so, but then the related records aren't interactive like they are with hosted feature layers (below):
Hi Ken,
Just troublehsooting this now, and even the Arcade is not working. So with your example, when you're in the AGOL webmap and you click on "Tables" on the left hand side, do you see all of your related tables available? In mine I see nothing. But maybe related tables don't show up here anyways....I'm just curious.
.
Yes, this is what I experience too.
You can add a related table to your map, using the Add button in the upper left and using the URL of your table layer.