How to use Arcade to to filter (hide) data based on another layer value

947
2
Jump to solution
03-24-2022 01:40 PM
Labels (3)
JoseBarrios1
Occasional Contributor III

Hello everyone,

Does anyone know if is possible to use arcade to dynamically filter point data of one layers based on a common field of another layer?. The situation is that we have a point feature service that we are not allow to edit. We are using the external service to collect data using Survey123. The new created  Survey123 layer is displayed on top of the original source layer and I want to remove (hide) the point from the external service if the point ID is the same as the ID on the Survey123. I don’t know if this is possible with arcade. Thanks for any ideas or suggestions!

JB

0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

Unfortunately, no. Arcade isn't even used in the web map filters, so you won't be able to filter layer A based on layer B. You may be able to do this with some odd workarounds, maybe editing the filter in the web map's JSON using Python? But even then, you'd have to refresh the map to update it, it wouldn't be dynamic.

Dashboard Data Expressions could certainly do this, but that doesn't do you much good for displaying the data on a map.

- Josh Carlson
Kendall County GIS

View solution in original post

2 Replies
jcarlson
MVP Esteemed Contributor

Unfortunately, no. Arcade isn't even used in the web map filters, so you won't be able to filter layer A based on layer B. You may be able to do this with some odd workarounds, maybe editing the filter in the web map's JSON using Python? But even then, you'd have to refresh the map to update it, it wouldn't be dynamic.

Dashboard Data Expressions could certainly do this, but that doesn't do you much good for displaying the data on a map.

- Josh Carlson
Kendall County GIS
JoseBarrios1
Occasional Contributor III

Thank you Josh!

0 Kudos