Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8277561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:43:13+00:00 2026-06-08T08:43:13+00:00

Why would a record persisted successfully with a rest proxy calling the POST/Create action,

  • 0

Why would a record persisted successfully with a rest proxy calling the POST/Create action, and then on subsequent saves, call the same POST/Create method and not the the PUT/Update one?

POSTS

var ref = beginQuestionnaireControl.getPegfileRef();
var Pegfile = Ext.create('Pegfect.model.Pegfile', {
  Id: 0,
  Reference: ref
});
Pegfile.save({
  scope: this,
  success: function (pegfile, operation) {
    this.activePegfile = pegfile;
    this.startQuestions();
  },
  failure: function () {
    alert('That ref is not unique');
  }
});

also POSTS (expecting a PUT)

this.activePegfile.save({
      success: function () {
        successCallback();
      },
      failure: function () {
        alert('oops, error saving Pegfile');
      }
    });

proxy

proxy:
  {
    type: 'rest',
    url: 'Pegfile',
    timeout: 120000,
    noCache: false,

    reader:
    {
        type: 'json',
        root: 'data',
        successProperty: 'success'
    },

    writer:
    {
        type: 'json',
        writeAllFields: true
    }
  }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T08:43:15+00:00Added an answer on June 8, 2026 at 8:43 am

    The trick is to define an ‘Id‘ property on the Model:

    idProperty: 'Id'
    

    Crying out for some convention over config on this one…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use doctrine 2.1 I have two objects for the same record, one persisted
I would like to record audio to know the noise level. I do not
I have an automation system and I would like to record user logins and
Would it be possible rollback transactions using Transactionlog file for a particular record? I
I would like to know how I can record a video in MATLAB with
I would like to print raw phone number record (31999999) as 31-999-999 (PHP). I
How would I write a SQL query that excludes a record if one (external)
I would like to know how do I declare a record, that has some
I would like to know if it exist a solution to record audio which
I would like to run a script in production. This script generates a record

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.