Parse xml (the ArcGIS Flex Viewer is a big sample of how to do it)Create MapPoints from readed dataCreate array of Graphics with created geometries and required(not nullable) attributesapplyEdits()
FeatureLayer.applyEdits([ptGraphic],null,null,true,null);
Xiannian, Make sure you are passing graphics with all required attributes (as Ivan Mentioned) as an array. If it is a single graphic use code like this (all the items in red are required): FeatureLayer.applyEdits([ptGraphic],null,null,true,null);
Xiannian, Just like Ivan mentioned non nullable attributes. No you do not need to populate the OID or GlobalID fields. Not sure what problem you are having as I do editing this way all the time.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.