Search code examples
extjsextjs4.2sencha-architect

Sencha Architect 3 - in my model how do I set mappings in the Fields


Sencha Architect 3, in my model, how do I set mappings in the Fields (Ext.data.Model) so that I can extract data from my nested JSON??

There seems to be no way I can see to do this within Architect.

It seems my only way around this is to edit the .js outside of Architect which I do not want to do in case I screw up the metadata files.

Thanks.


Solution

  • Hmm, there is the mapping config option for fields in Architect 3. See the screenshot.

    Mapping of model fields in Sencha Architect 3