Results 1 to 4 of 4

Thread: Ext.data.Api.CREATE and Ext.data.Api.UPDATE

  1. #1
    Sencha User MiamiCoder's Avatar
    Join Date
    Mar 2009
    Location
    Miami, FL
    Posts
    144

    Default Ext.data.Api.CREATE and Ext.data.Api.UPDATE

    In a grid, I'm editing an existing record in place. The grid's store has a JsonWriter attached. When focus switches from the cell being edited to another cell, a POST is generated with XACTION = CREATE. Is CREATE the correct action in this case?

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    Did you create your reader with an idProperty config option? Otherwise all records will have auto-generated ids and become phantoms (records with ids not yet added to the database).

  3. #3
    Sencha User MiamiCoder's Avatar
    Join Date
    Mar 2009
    Location
    Miami, FL
    Posts
    144

    Default

    I missed the idProperty. That will likely be the cause because I could see the phantom while debugging. I will use idProperty and report back.

    Thank you Condor.

  4. #4
    Sencha User MiamiCoder's Avatar
    Join Date
    Mar 2009
    Location
    Miami, FL
    Posts
    144

    Default

    Using idProperty solved the issue.

    Thank you Condor.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •