condtion might be a reserved word? i'm not sure if fdo/mapguide has them tho..
On Fri, May 9, 2008 at 6:04 PM, adnan.c <[EMAIL PROTECTED]> wrote: > > Currently working with the MapGuide OpenSource 2.0 API and need to return a > list of all the unique values for a property for a particular layer > > I have the following code where featureReader is of type MgFeatureReader > > string propertyName = "Condition"; > > MgFeatureQueryOptions queryOptions = new MgFeatureQueryOptions(); > featureReader = featService.SelectFeatures(resId, propertyName, > queryOptions); > > However I get the error message "An exception occurred in FDO component. > Item 'Condition' not found in collection. > > I've tried using a MgDataReader but am running into the same error message > as above. > > MgFeatureAggregateOptions queryOptions = new MgFeatureAggregateOptions(); > dataReader = featService.SelectAggregate(resId, propertyName, queryOptions); > > Many Thanks, > > Adnan > -- > View this message in context: > http://www.nabble.com/Return-all-unique-values-for-a-property-for-a-particular-layer-tp17143206p17143206.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > -- Zac Spitzer - http://zacster.blogspot.com (My Blog) +61 405 847 168 _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
