Select to view content in your preferred language

SubtypeGroupLayer: Set definition query in 2.2 SDK?

07-17-2018 03:05 PM
New Contributor II

How can I programmatically set a definition query on a SubtypeGroupLayer found in the Table of Contents? 

In the ArcGIS Pro SDK, a FeatureLayer has access to this method to set a definition query, and can be done manually in the UI. 

However, a SubtypeGroupLayer has the UI capability to build a definition query, but no SDK call. Furthermore, any FeatureLayers that are children of this group can't call this method without throwing an InvalidOperationException.

Is this missing functionality, or is there a different way we're meant to go about doing this? 

The end goal is to filter and zoom to a specific set of features that correspond to given IDs. 

0 Kudos
0 Replies