AnsweredAssumed Answered

How do I Update a Table via a FeatureService?

Question asked by keithfraley on Mar 4, 2014
Latest reply on Sep 25, 2014 by jskinner-esristaff
I have my feature service all set up, I have my table served up in that feature service.  I can access via the rest explorer and do the update manually via "updateFeature" url.  what am I missing or is there a better way?

What is the best way to do this in javascript.  I keep getting a 405 error when I try and execute using dojo.xhrPost

var xhrArgs = {
      url: "http://url/FeatureServer/3/updateFeatures",
      postData: attributes),
      handleAs: "json",
      load: function(data){
        console.log("Message posted.");
      },
      error: function(error){
        console.log("Message posted.");
      }
    }
    console.log("Message being posted.");
    var deferred = dojo.xhrPost(xhrArgs);
  }

Outcomes