Hi all.
I have a hosted feature layer in AGOL that includes three spatial layers and one plain table.
I have then gone ahead and created a 'View' of this hosted layer, with the intention of applying a filter.
On the item page for the view, I go to the 'Visualization' tab, and I can go ahead and enter filters for the spatial layers. But the plain table is missing from that list.
How do I set a filter on the plain table?
Cheers,
-Paul
Solved! Go to Solution.
Hi Paul Haakma,
You can set a view definition when you open a table in the map viewer. As hosted table items don't have a visualization tab, you'll need to set the definition in Map Viewer.
Manage hosted feature layers—ArcGIS Online Help | ArcGIS
-Kelly
Paul,
I'm starting to think that you cannot make a filter on a table in ArcGIS Online. Can you post a screenshot of what you're seeing?
In this article:
Apply filters—ArcGIS Online Help | ArcGIS
It says :
You can create filters on hosted feature layers, ArcGIS Server feature service layers, and ArcGIS Server map service layers that have associated attribute data; you cannot create filters on map notes or features imported from a file. Only the features that meet the expression criteria will be visible in the map.
However, this article:
Show tables—ArcGIS Online Help | ArcGIS
says:
Tip:
Showing tables can be a useful way to see which features will display in your map. If the layer contains features that aren't important to your audience, you can set up a more focused display of the layer by applying filters.
So, there has to be a way to apply filters, according to the documentation.
Hi Paul Haakma,
You can set a view definition when you open a table in the map viewer. As hosted table items don't have a visualization tab, you'll need to set the definition in Map Viewer.
Manage hosted feature layers—ArcGIS Online Help | ArcGIS
-Kelly
Hi Kelly
Correct me if I'm wrong, but setting the filter in the Map Viewer then only sets the filter for that Web Map, not building it into the underlying 'Feature View'??
I really want the filter tied to the actual view so that the end user can't bypass the web map and access the unfiltered data.
Cheers,
-Paul
Hi Kelly, this did work for me - thanks! I am wondering though...is there a way to do this in the new Map Viewer? How are we to accomplish this once Map Viewer Classic is retired?
On the visualization tab of the 'Feature View', only the layers are visible, not the table.
Hi Paul,
Open the layer in Map Viewer and you will be able to see the table and set the definition view.
-Kelly