Hi all, I want to insert or update a value with null using MgFeatureService::UpdateFeatures but i don't know how ! I try to do this :
MgPropertyCollection insertProperties = new MgPropertyCollection(); MgInt32Property mgProp = new MgInt32Property(propertyName, 0); mgProp.SetNull(true); insertProperties.Add(mgProp); ... MgFeatureCommandCollection commands = new MgFeatureCommandCollection(); commands.Add(new MgInsertFeatures(classDef.GetName(), insertProperties)); MgPropertyCollection updatedProps = featureService.UpdateFeatures(resId, commands, false); but it doesn't work. If i don't add MgProperty with null value to the MgPropertyCollection, it work, but i don't have null in my field (older value if update, default value if insert). In mapguide src the function MgServerFeatureUtil::MgPropertyToFdoDataValue(MgProperty* srcProp) don't test if the MgProperty is null. Can anybody help me? Christophe -- View this message in context: http://www.nabble.com/How-to-insert-null-using-MgFeatureService%3A%3AUpdateFeatures-tp19430424p19430424.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
