[mapguide-users] How to use count or max expression in fdo providerfor sdf

Jason Birch Jason.Birch at nanaimo.ca
Mon Oct 1 16:16:47 EDT 2007


Bruno,

Where is it failing?  At the SelectFeatures call?  I'm wondering if you
might need SelectAggregate instead.

Jason 

-----Original Message-----
From: Bruno Scott
Subject: [mapguide-users] How to use count or max expression in fdo
providerfor sdf

    //this one returns : Invalid property name: Count()
    //queryOptions.AddFeatureProperty("Count()");
 
    //this one returns : The function 'Count' is not supported by this
provider
    queryOptions.AddComputedProperty("Count", "Count()");

    MgFeatureReader dataReader = featureService.SelectFeatures(resId,
"SHP_Schema:Parcels", queryOptions);



More information about the mapguide-users mailing list