Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The attributes in JSON response are all lowercase like 'title' &amp; 'content' whereas your model field names have first letter in uppercase like 'Title' &amp; 'Description'. Moreover there is no field like 'Description' in JSON, its 'content' and also'title' data is in '$t' attribute.</p> <p>I'd suggest you to dump and look at parsed JSON object in console to understand how to render its attribute correctly.</p> <p>One more thing, instead of using:</p> <p><a href="https://spreadsheets.google.com/feeds/list/0AhW0xtL9j2bAdHlwRE1qcE1WdDVLa2dRdDBxNTJBV0E/od6/public/basic?alt=json-in-script" rel="nofollow">https://spreadsheets.google.com/feeds/list/0AhW0xtL9j2bAdHlwRE1qcE1WdDVLa2dRdDBxNTJBV0E/od6/public/basic?alt=json-in-script</a></p> <p>use this:</p> <p><a href="https://spreadsheets.google.com/feeds/list/0AhW0xtL9j2bAdHlwRE1qcE1WdDVLa2dRdDBxNTJBV0E/od6/public/values?alt=json-in-script" rel="nofollow">https://spreadsheets.google.com/feeds/list/0AhW0xtL9j2bAdHlwRE1qcE1WdDVLa2dRdDBxNTJBV0E/od6/public/values?alt=json-in-script</a></p> <p>to get columns as attributes of <code>entry</code> object. In this case you can define your model like this:</p> <pre><code>Ext.define('MyApp.model.InfoList', { extend: 'Ext.data.Model', config: { fields: [ {name : 'id',type : 'string', mapping:'id.$t'}, {name : 'Title',type : 'string', mapping:'gsx$Title.$t'}, {name : 'Description',type : 'string', mapping:'gsx$Description.$t'}, {name : 'Icon',type : 'string', mapping:'gsx$Icon.$t'} ], idProperty: 'id' } }); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload