[mapguide-users] Update Joined layer feature

Mbonnet mbonnet at adelior.gfi.fr
Fri Aug 8 06:01:59 EDT 2008


I found a solution :

when you insert the feature :

MgFeatureService featureService =
(MgFeatureService)this.site.CreateService(MgServiceType.FeatureService);		
MgResourceIdentifier featureSourceId = new
MgResourceIdentifier(featureSourceName);
	
MgFeatureCommandCollection commands = new MgFeatureCommandCollection();
commands.Add(new MgInsertFeatures(featureName, propertyValues));
	
featureService.UpdateFeatures(featureSourceId, commands, false);

you need to get the "FeatureClass" name of the layer, if you put the default
FeatureClass name (without the join, it works for exemple my SDF is called
BATIMENT.sdf
and my join is called BAT_JOIN, where you create your layer you select for
the class name the join name.
in my java code if fount the defaut name Default:BATIMENT.sdf in my feature
source xml. and send it in the command.add function.

if i'm not clear, you can ask questions.
-- 
View this message in context: http://www.nabble.com/Update-Joined-layer-feature-tp18866208p18889191.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list