Select to view content in your preferred language

Filter FeatureTable by attribute or name

94
1
12-03-2024 03:32 AM
Geoeki
by
Regular Contributor

Hello all,

the JS API reference guide provides information on the filtering options with the FeatureTable:

Geoeki_0-1733225285435.png

Now let's take this sample FeatureTable. How would I

  1. filter the city column by predefined attributes (e.g. city of York)
  2. filter the school name by name (e.g. every row that contains university)

I haven't found any samples that provide those basic means of interacting with a table. Isn't this supported by the FeatureTable as of today?

0 Kudos
1 Reply
MatthewDriscoll
MVP Alum

Query the layer, loop through it, then use featureTable.selectRows(yourResults) and featureTable.filterBySelection().  The loop might not be needed? 

0 Kudos