Select to view content in your preferred language

Query Hosted Feature Layer Based on Related Table?

1218
5
08-29-2017 02:04 PM
LianaSmith
Frequent Contributor

I have AGOL hosted layer and related table. I would like to filter layer based on the value from the related table. How can I do it?

Thanks!

0 Kudos
5 Replies
MicahBabinski
Frequent Contributor

Hi Liana,

It looks like Query widget—Web AppBuilder for ArcGIS | ArcGIS has you covered. Have you tried looking into that? It mentions that you can query and filter based on related table attributes.

Micah

0 Kudos
LianaSmith
Frequent Contributor

Hi Micah.

Thank you for you r reply. I tried using query, but I don't see fields from the related table when I try to do the expression.

And if I try to query related table, the layer itself doesn't get queried..

Thanks!

0 Kudos
MicahBabinski
Frequent Contributor

What was your data source selection when you configured the query? It looks like you might have to use the URL to the service that has the related table.

0 Kudos
LianaSmith
Frequent Contributor

I tried both: selecting the layer (There were no fields from related table to choose from) and I tried querying related table separately (layer was not adjusted based on this query)

0 Kudos
LianaSmith
Frequent Contributor

I forgot to mention, that I am not only trying to query but filter (so the features are changed on the map)  the layer as well

0 Kudos