AnsweredAssumed Answered

applyEdits() update AGOL point features ("GETGEOMETR", "GETGEOMET0" )

Question asked by michaellodes on Jun 13, 2018
Latest reply on Jun 14, 2018 by rscheitlin

Hi all,


I want to update feature attributes of a hosted Feature Layer with EPSG: 31468. I created the hosted Feature Layer by importing a AGOL created automatically the x and y fields: "GETGEOMETR" and "GETGEOMET0" in the table instead of the usual fields "latitude" and "longitude". Which attributes do I have to update now? Following attribute pairs dont work used in the code below: "latitude, longitude", "x, y", "X, Y", "GETGEOMETR, GETGEOMET0". Other attributes of the features are updated, but not the geometry ones.



var lyr = new FeatureLayer({
        url: "...",
        title: "...",
        objectIdField: "MYSQLID",
        outFields: ["*"]

var featArr= [];

featArr.push(new Graphic({
      geometry: {
        type: "point",
        GETGEOMETR: 4407542.567,
        GETGEOMET0: 5338913.567
      attributes: {
          FID: indexFID,
          MYSQLID: "5678"

updateFeatures: featArr


Do you know the solution?




Kind Regards,