Filter Function in attribute table

1382
3
03-31-2017 06:32 AM
KumarHarish
New Contributor III

A feature layer is created programmatically using feature layer definition and feature set.  The data is coming  from Jason based web service. In attribute table  Filter (Allows to filter records in the table) button is disable.   I like to use this filter option against out custom locally created feature layer.   Please help me how can I turn on this option?

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Kumar,

   You can't. There is a limitation that comes with using FeatureLayers that are created from FeatureCollections:

  • Does not support queries that need to be performed on the server, e.g. queries with a where clause or non-extent based spatial queries.

Because of this filtering can not be accomplished.

KumarHarish
New Contributor III

Robert,

What I understand the operation is performed on  server.

Is it possible the Filter option for feature collection based feature layer can be turned ON? If yes, will it work except query execution part?  If yes, a custom function(s) can be developed.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Kumar,

   Because of the limitation mentioned in my last post you can not turn on filtering in the attribute table for feature collections.