How to filter fields values collection of selection layer in SQLQueryDialog

1034
0
09-16-2016 02:29 AM
MaxMax2
Occasional Contributor II

Hi!

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?

0 Kudos
0 Replies