[mapguide-users] Problems with featureservice.UpdateFeatures
Zac Spitzer
zac.spitzer at gmail.com
Tue May 6 21:35:02 EDT 2008
you have previously opened a feature reader and not closed it
On Wed, May 7, 2008 at 4:01 AM, Scott Hameister <scotth at mpower-tech.com> wrote:
>
>
>
>
> 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()>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
More information about the mapguide-users
mailing list