-
23 Jul 2012 12:31 PM #1
JsonStore with writer
JsonStore with writer
Hi, is possible to set different 'root' property for writer? As I see in source code, there is following line:
I tried set up root but following lines does not solve my problem:Code:params[this.meta.root] = Ext.encode(data);
Code:writer: new Ext.data.JsonWriter({ encode: true, writeAllFields: false, root: 'records' })
-
4 Aug 2012 4:44 PM #2
-
7 Aug 2012 1:21 PM #3
When i try help one guy here with problem i found following code in writer:
Why you assign meta data from reader to writer? Then it isnt possible to assign different root to writer as it is in Ext 4.Code:... if(this.reader){ // reader passed if(!this.recordType){ this.recordType = this.reader.recordType; } if(this.reader.onMetaChange){ this.reader.onMetaChange = this.reader.onMetaChange.createSequence(this.onMetaChange, this); } if (this.writer) { // writer passed if (this.writer instanceof(Ext.data.DataWriter) === false) { // <-- config-object instead of instance. this.writer = this.buildWriter(this.writer); } this.writer.meta = this.reader.meta; this.pruneModifiedRecords = true; } } ...
-
30 Aug 2012 12:30 PM #4
http://www.sencha.com/forum/showthread.php?98291-DEFER-926-A-DataWriter-s-metadata-may-be-different-from-the-DataReader&
Any plans change source code or is it still deferred?


Reply With Quote