sync
[roojs1] / docs / symbols / Roo.data.JsonReader.html
index e7e2c1f..9a5f0f5 100644 (file)
@@ -82,7 +82,7 @@
     
 <!-- ============================== class summary ========================== -->                       
     <div class="description">
-       Data reader class to create an Array of Roo.data.Record objects from a JSON response<br/>based on mappings in a provided Roo.data.Record constructor.<br/><p><br/>Example code:<br/><pre><code><br/>var RecordDef = Roo.data.Record.create([<br/>    {name: 'name', mapping: 'name'},     // "mapping" property not needed if it's the same as "name"<br/>    {name: 'occupation'}                 // This field will use "occupation" as the mapping.<br/>]);<br/>var myReader = new Roo.data.JsonReader({<br/>    totalProperty: "results",    // The property which contains the total dataset size (optional)<br/>    root: "rows",                // The property which contains an Array of row objects<br/>    id: "id"                     // The property within each row object that provides an ID for the record (optional)<br/>}, RecordDef);<br/></code></pre><br/><p><br/>This would consume a JSON file like this:<br/><pre><code><br/>{ 'results': 2, 'rows': [<br/>    { 'id': 1, 'name': 'Bill', occupation: 'Gardener' },<br/>    { 'id': 2, 'name': 'Ben', occupation: 'Horticulturalist' } ]<br/>}<br/></code></pre>
+       Data reader class to create an Array of Roo.data.Record objects from a JSON response<br/>based on mappings in a provided Roo.data.Record constructor.<br/><br/>The default behaviour of a store is to send ?_requestMeta=1, unless the class has recieved 'metaData' property<br/>in the reply previously. <br/><br/><p><br/>Example code:<br/><pre><code><br/>var RecordDef = Roo.data.Record.create([<br/>    {name: 'name', mapping: 'name'},     // "mapping" property not needed if it's the same as "name"<br/>    {name: 'occupation'}                 // This field will use "occupation" as the mapping.<br/>]);<br/>var myReader = new Roo.data.JsonReader({<br/>    totalProperty: "results",    // The property which contains the total dataset size (optional)<br/>    root: "rows",                // The property which contains an Array of row objects<br/>    id: "id"                     // The property within each row object that provides an ID for the record (optional)<br/>}, RecordDef);<br/></code></pre><br/><p><br/>This would consume a JSON file like this:<br/><pre><code><br/>{ 'results': 2, 'rows': [<br/>    { 'id': 1, 'name': 'Bill', occupation: 'Gardener' },<br/>    { 'id': 2, 'name': 'Ben', occupation: 'Horticulturalist' } ]<br/>}<br/></code></pre>
     </div>
 
        
 <!-- ============================== footer ================================= -->
                <div class="fineprint" style="clear:both">
                        
-                       Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a>  on Mon Jul 26 2010 15:02:38 GMT+0800 (HKT)
+                       Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a>  on Wed Nov 10 2010 15:19:21 GMT+0800 (HKT)
                        Based on 
                        <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>  
                </div>