PDA

View Full Version : Ext.data.Api.CREATE and Ext.data.Api.UPDATE



MiamiCoder
4 May 2009, 8:27 PM
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?

Condor
5 May 2009, 4:54 AM
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).

MiamiCoder
5 May 2009, 5:02 AM
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.

MiamiCoder
5 May 2009, 4:50 PM
Using idProperty solved the issue.

Thank you Condor.