PDA

View Full Version : [DUPE-196] Fields are not copied from JSON metaData response to store



SvenWS
30 Aug 2010, 12:04 PM
Sencha Touch version tested:

0.9 rev 3

only default ext-all.css




Platform tested against:

iOS 3.x


Description:

I defined a simple JsonStore with a metaData response field to dynamically define the store. It works as expected with the total, success and id properties, but not with the fields meta data. I defined a more complex store to catch the onMetaChange event. The meta object of the function holds the correct fields from the JSON respond.



Steps to reproduce the problem:

Simple JSON store and a JSON response with metaData.


The result that was expected:

A store that maps to the fields in the metaData definition.


The result that occurs instead:

No mapping.



Debugging already done:

Yes.


Possible fix:

Overwriting the onMetaChange event and writing a new buildExtractors function

SvenWS
5 Sep 2010, 1:40 AM
I think it's the same error like in post:
http://www.sencha.com/forum/showthread.php?106081