[mapguide-users] Problems with featureservice.UpdateFeatures

Scott Hameister scotth at mpower-tech.com
Tue May 6 14:01:27 EDT 2008


I created a buffer tool in 1.2.that let you create a new buffer and type in
the name of the layer you wanted it on.

I would then check to see if the layer already existed then delete out any
objects inside to clean it out before adding to it.

 

The codes still works fine in 1.2.but in 2.0 I get this Error

Please Try your Operation Later Resource was busy Sesion:134..

 

I'm working in Coldfusion, but the code should translate fairly well! The
crash Point is at featureSrvc.UpdateFeatures.

 

                <cfset deleteCmd = CreateObject("java",
"org.osgeo.mapguide.MgDeleteFeatures").init(featureName, "ID >= 0")>

                <cfset commands = CreateObject("java",
"org.osgeo.mapguide.MgFeatureCommandCollection")>

                <cfset commands.Add(deleteCmd)>

                <cfset featureSrvc.UpdateFeatures(dataSourceId, commands,
false)>

                <cfset commands.delete()>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080506/4e1f08f0/attachment.html


More information about the mapguide-users mailing list