Programmatically filter attribute table

6605
24
Jump to solution
06-17-2016 02:39 PM
Ravichandran_M_Kaushika
Occasional Contributor

dear Readers,

thank you for taking the time to read the contents of the post.

How to programmatically filter records of the attribute grid?

there is a filter menu that open a popup window which allows the users to select the column by which the condition should be applied.  it also provides the ability to add 1 or 2 more columns with the option to make it ANY or AND.\

Is there a way to perform this operation programmatically?

thanks and regards

ravi.

0 Kudos
24 Replies
friskyweasel
New Contributor

Thanks a lot for the quick reply Robert - yes in retrospect I guess that should have been pretty obvious ; ). We will definitely try it - thanks a bunch for all of your help!

0 Kudos
RebeccaStrauch__GISP
MVP Emeritus

fyi Robert, you text says "1=1", your sample code says "1-1".  Might want to fix which ever is incorrect (assuming is should be 1=1)

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Thanks Rebecca.

0 Kudos
friskyweasel
New Contributor

worked beautifully Robert - thanks a lot!

0 Kudos
Ravichandran_M_Kaushika
Occasional Contributor

Sorry Robert,

my colleague Mark (Frisky Weasel) was working on this issue and I forgot to check back.

have a good weekend.

regards

ravi.

0 Kudos