Ivan.Milicevic at supranet.hr
Mon Mar 2 00:46:49 EST 2009
Hello Zac, hello group
I'm havig the same problems as George has. Tried
result.GetItem(0).GetValue() and resoult is 9. Can you help me? I'm
really suffering to create this "easy to do" feature.
The following code does it well, no execption, no errors but no deleted
feature as well.
PLease, be note that Filter string is fine.
Thanx a lot.
string TIMgisUser =
MgUserInformation userInfo = new
MgUserInformation("Administrator", "" +
System.Configuration.ConfigurationManager.AppSettings["mgP"] + "");
MgSite site = new MgSite();
String mgSessionId = site.CreateSession();
MgUserInformation userInfoNew = new
MgSiteConnection siteConnection = new MgSiteConnection();
MgResourceService resourceService =
MgFeatureService featureService =
MgResourceIdentifier resId = new
MgFeatureCommandCollection commands = new
MgDeleteFeatures deleteCmd = new MgDeleteFeatures("DIONICE",
featureService.UpdateFeatures(resId, commands, false);
string re = featureService.UpdateFeatures(resId, commands,
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Zac Spitzer
Sent: Friday, August 01, 2008 3:06 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] MG 1.2 vs 2.0.1
yep...it does fail silently, which is really annoying.. it should just
raise an exception
On Fri, Aug 1, 2008 at 4:16 AM, George McLean <gmclean at gorge.net> wrote:
> No I am not. Does this ignore the error message and process the update
> Zac Spitzer wrote:
>> Are you checking the result as bellow
>> result=featureService.UpdateFeatures(resourceID, fCommand, false);
>> if (result.GetItem(0).GetPropertyType() eq 9)
>> result.GetItem(0).GetValue() // Silent FDO error messages!!!!
>> On Fri, Aug 1, 2008 at 2:14 AM, Zac Spitzer <zac.spitzer at gmail.com>
>>> can you post some code to demonstrate the problem?
>>> On Fri, Aug 1, 2008 at 2:05 AM, George McLean <gmclean at gorge.net>
>>>> I am a bit stuck in upgrading to 2.0.1 mainly due to the issues
>>>> data to feature sources discussed in this thread:
>>>> My immediate issue is that I have a client that would really like
>>>> 3.0 with my application. I see that either I need to find a way to
>>>> fixes made in 2.0 for FF to 1.2 or find a way around the issues
>>>> updating feature data.
>>>> I could look at the code for MG 1.2 and apply the changes made to
>>>> some guidance on where to start but I think I would rather find a
>>>> for MG
>>>> Any suggestions would be appreciated.
>>>> George McLean
More information about the mapguide-users