title: How to auto-increment values in ID column in OData
body: <p>I want to create a new record of user in my OData model. For every new record created, I want the <code>userId</code> to be self-created and auto-incremented for the next user to be added. The code is also not reading the success function and directly executing the error part when I applied the debugger and checked.</p>
  
  <p><strong>signup.controller.js</strong>    </p>
  
  <pre class="lang-js prettyprint-override"><code>return Controller.extend("Workspace.controller.App", {
    onInit: function() {
      var user = {
        name: "",
        email: "",
        password: ""
      };
      var oModel = new JSONModel(user);
      this.getView().setModel(oModel, "SUP");
    },
  
    signupButton: function(oEvent) {
      var oModel = this.getOwnerComponent().getModel("TEST");
      var oModel1 = this.getOwnerComponent().getModel("UID");
      var oModel2 = this.getOwnerComponent().getModel("SUP");
      var obj = {};
      obj.USERID = oModel1.getProperty("/x");
      obj.USERNAME = oModel2.getProperty("/name");
      obj.PASSWORD = oModel2.getProperty("/password");
      obj.USERMAIL = oModel2.getProperty("/email");
  
      oModel.create("/user", obj, {
        success: function(oData, oResponse) {
          MessageToast.show("Record Created Successfully...");
  
        },
        error: function(err, oResponse) {
          MessageToast.show("Record not Created...");
        }
      });
    },
  
    // ...
  });
  </code></pre>