[mapguide-users] Re: Query features based on a list or array of
attribute values
soudemans
soudemans at ruekert-mielke.com
Mon Nov 28 10:30:23 EST 2011
Thanks mauricio,
It does work, except I failed to specify the field name. This is what I
had:
qryOptions.SetFilter("IN('10-H-11','10-H-12','10-H-13','10-H-14','10-H-15','10-H-16')")
I tried with the ID (Integer values), as you suggested like this:
'qryOptions.SetFilter("ID
IN(14,955,956,961,962,963,964,965,966,967,968,969,970,971,972)")
After which I tried what I had originally planned (String values) like:
qryOptions.SetFilter("HYDNO
IN('10-H-11','10-H-12','10-H-13','10-H-14','10-H-15','10-H-16')")
and that worked too.
Sierk
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Query-features-based-on-a-list-or-array-of-attribute-values-tp7025060p7039103.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list