AnsweredAssumed Answered

How to filter fields values collection of selection layer in SQLQueryDialog

Question asked by maxmaxmaxmaxmax on Sep 16, 2016


I'm trying to show SQLQueryDialog in ArcObjects for selection layer (layer created from feature layer via layer's context menu Selection -> Create Layer From Selected Features). My code is:

_queryDialog.DoModalEx(expression, featureLayer /*this is selection layer*/, hWnd)

When query builder is opened the list of fields values consists of all values of the corresponding fields of the original layer used for creating the selection layer.

But in the Select by Attributes dialog in ArcMap values are filtered for selection layers – only values of features of the selection layer are shown. Query builder used for setting definition query for selection layer shows filtered fields values list too.

My question is how to filter fields values in SQLQueryDialog for selection layer?