1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.data.SimpleStore</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.data.SimpleStore-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.data.SimpleStore-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.data.SimpleStore-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.data.SimpleStore-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img src="../../images/default/tree/elbow-end.gif" class="elbow"/><a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
48 <img src="../../images/default/s.gif" height="1" width="40"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.data.SimpleStore
53 <!-- ============================== class title / details ============================ -->
56 <h1 class="classTitle">
58 Class Roo.data.SimpleStore
61 <table cellspacing="0" class="class-summary-table">
63 <tr><td class="label">Package:</td><td class="hd-info">Roo.data</td></tr>
65 <tr><td class="label">Defined In:</td><td class="hd-info">
67 <a href="./src/Roo_data_SimpleStore.js.html">Roo/data/SimpleStore.js</a>.
70 <tr><td class="label">Class:</td><td class="hd-info">SimpleStore</td></tr>
75 <tr><td class="label">Extends:</td><td class="hd-info">
76 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
84 <!-- ============================== class summary ========================== -->
85 <div class="description">
86 Small helper class to make creating Stores from Array data easier.
90 <!-- ============================== Class comment block... ========================== -->
92 <div class="comments">
93 <b>Class Comments / Notes</B> =>
94 <u onclick="parent.CommentDialog.showCommentId = 'Roo.data.SimpleStore';">[Add Your comment/notes about this class]</u>
96 <iframe frameborder="0" id="comments-Roo.data" style="border: none;width:100%;"
97 src="/blog.php/GtkDjsComments/Roo.data.SimpleStore.html"></iframe>
102 <!-- ============================== config options ========================== -->
107 <div class="hr"></div>
108 <a id="Roo.data.SimpleStore-configs"></a>
114 <table cellspacing="0" class="member-table">
115 <caption>Config Options (Usually are also Properties)</caption>
119 <th class="sig-header" colspan="2">Options</th>
121 <th class="msource-header">Defined By</th>
128 <tr class="config-row expandable config-row-alt0">
129 <td class="micon"><a class="exi" href="#expand"> </a></td>
132 <a id="Roo.data.Store-cfg-baseParams" name=".baseParams"></a>
133 <div class="fixedFont">
134 <b class="itemname">baseParams</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
140 <div class="short">An object containing properties which are to be sent as parameters<br/>on any HTTP request</div>
145 An object containing properties which are to be sent as parameters<br/>on any HTTP request
155 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
161 <tr class="config-row expandable config-row-alt1 notInherited">
162 <td class="micon"><a class="exi" href="#expand"> </a></td>
165 <a id="Roo.data.SimpleStore-cfg-data" name=".data"></a>
166 <div class="fixedFont">
167 <b class="itemname">data</b> : <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
173 <div class="short">The multi-dimensional array of data</div>
178 The multi-dimensional array of data
194 <tr class="config-row expandable config-row-alt0 notInherited">
195 <td class="micon"><a class="exi" href="#expand"> </a></td>
198 <a id="Roo.data.SimpleStore-cfg-fields" name=".fields"></a>
199 <div class="fixedFont">
200 <b class="itemname">fields</b> : <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
206 <div class="short">An array of field definition objects, or field name strings.</div>
211 An array of field definition objects, or field name strings.
227 <tr class="config-row expandable config-row-alt1 notInherited">
228 <td class="micon"><a class="exi" href="#expand"> </a></td>
231 <a id="Roo.data.SimpleStore-cfg-id" name=".id"></a>
232 <div class="fixedFont">
233 <b class="itemname">id</b> : <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
239 <div class="short">The array index of the record id.</div>
244 The array index of the record id. Leave blank to auto generate ids.
260 <tr class="config-row expandable config-row-alt0">
261 <td class="micon"><a class="exi" href="#expand"> </a></td>
264 <a id="Roo.data.Store-cfg-isLocal" name=".isLocal"></a>
265 <div class="fixedFont">
266 <b class="itemname">isLocal</b> : boolean
272 <div class="short">flag if data is locally available (and can be always looked up<br/>without a remote query - used by combo/forms at present.</div>
277 flag if data is locally available (and can be always looked up<br/>without a remote query - used by combo/forms at present.
287 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
293 <tr class="config-row expandable config-row-alt1">
294 <td class="micon"><a class="exi" href="#expand"> </a></td>
297 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
298 <div class="fixedFont">
299 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
305 <div class="short">list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> .</div>
310 list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> ..... <br/> } ,<br/> .... <br/> } <br/> </code></pre>
320 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
326 <tr class="config-row expandable config-row-alt0">
327 <td class="micon"><a class="exi" href="#expand"> </a></td>
330 <a id="Roo.data.Store-cfg-multiSort" name=".multiSort"></a>
331 <div class="fixedFont">
332 <b class="itemname">multiSort</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
338 <div class="short">enable multi column sorting (sort is based on the order of columns, remote only at present)</div>
343 enable multi column sorting (sort is based on the order of columns, remote only at present)
353 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
359 <tr class="config-row expandable config-row-alt1">
360 <td class="micon"><a class="exi" href="#expand"> </a></td>
363 <a id="Roo.data.Store-cfg-proxy" name=".proxy"></a>
364 <div class="fixedFont">
365 <b class="itemname">proxy</b> : <a href="./Roo.data.DataProxy.html#constructor" roo:cls="Roo.data.DataProxy.html#constructor">Roo.data.DataProxy</a>
371 <div class="short">The Proxy object which provides access to a data object.</div>
376 The Proxy object which provides access to a data object.
386 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
392 <tr class="config-row expandable config-row-alt0">
393 <td class="micon"><a class="exi" href="#expand"> </a></td>
396 <a id="Roo.data.Store-cfg-pruneModifiedRecords" name=".pruneModifiedRecords"></a>
397 <div class="fixedFont">
398 <b class="itemname">pruneModifiedRecords</b> : boolean
404 <div class="short">True to clear all modified record information each time the store is<br/>loaded or when a record is removed.</div>
409 True to clear all modified record information each time the store is<br/>loaded or when a record is removed. (defaults to false).
419 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
425 <tr class="config-row expandable config-row-alt1">
426 <td class="micon"><a class="exi" href="#expand"> </a></td>
429 <a id="Roo.data.Store-cfg-reader" name=".reader"></a>
430 <div class="fixedFont">
431 <b class="itemname">reader</b> : Roo.data.Reader
437 <div class="short">The Reader object which processes the data object and returns<br/>an Array of Roo.data.record objects which are cached keyed by their <em>id</em> property.</div>
442 The Reader object which processes the data object and returns<br/>an Array of Roo.data.record objects which are cached keyed by their <em>id</em> property.
452 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
458 <tr class="config-row expandable config-row-alt0">
459 <td class="micon"><a class="exi" href="#expand"> </a></td>
462 <a id="Roo.data.Store-cfg-remoteSort" name=".remoteSort"></a>
463 <div class="fixedFont">
464 <b class="itemname">remoteSort</b> : boolean
470 <div class="short">True if sorting is to be handled by requesting the Proxy to provide a refreshed<br/>version of the data object in sorted order, as opposed to sorting the Record cache in place (defaults to false).</div>
475 True if sorting is to be handled by requesting the Proxy to provide a refreshed<br/>version of the data object in sorted order, as opposed to sorting the Record cache in place (defaults to false).
485 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
491 <tr class="config-row expandable config-row-alt1">
492 <td class="micon"><a class="exi" href="#expand"> </a></td>
495 <a id="Roo.data.Store-cfg-sortInfo" name=".sortInfo"></a>
496 <div class="fixedFont">
497 <b class="itemname">sortInfo</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
503 <div class="short">A config object in the format: {field: "fieldName", direction: "ASC|DESC"}</div>
508 A config object in the format: {field: "fieldName", direction: "ASC|DESC"}
518 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
534 <!-- ============================== public properties ==================== -->
538 <a id="Roo.data.SimpleStore-props"></a>
544 <table cellspacing="0" class="member-table">
545 <caption class="Empty">Public Properties - Has None</caption>
551 <!-- ============================== methods summary / details ======================== -->
554 <a id="Roo.data.SimpleStore-methods"></a>
555 <!-- constructor?? -->
562 <!-- then dynamics first -->
569 <table cellspacing="0" class="member-table">
570 <caption>Public Methods</caption>
572 <th class="sig-header" colspan="2">Method</th>
573 <th class="msource-header">Defined By</th>
583 <tr class="method-row config-row-alt0 expandable notInherited">
584 <td class="micon"><a class="exi" href="#expand"> </a></td>
588 <a id="Roo.data-method-SimpleStore" name=".SimpleStore"></a>
589 <div class="fixedFont">
590 <span class="attributes">new <B>Roo.data.</B></span><b class="itemname">SimpleStore</b>
592 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
600 <div class="short">Create a new Roo.data.SimpleStore</div>
607 Create a new Roo.data.SimpleStore
610 <dl class="detailList">
611 <dt class="heading">Parameters:</dt>
614 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>config</b>
641 <tr class="method-row config-row-alt1 expandable">
642 <td class="micon"><a class="exi" href="#expand"> </a></td>
646 <a id="Roo.data.Store-method-add" name=".add"></a>
647 <div class="fixedFont">
648 <span class="attributes"></span><b class="itemname">add</b>
650 (<a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>)
657 <div class="short">Add Records to the Store and fires the add event.</div>
663 Add Records to the Store and fires the add event.
670 <dl class="detailList">
671 <dt class="heading">Parameters:</dt>
674 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span> <b>records</b>
677 <dd>An Array of Roo.data.Record objects to add to the cache.</dd>
697 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
703 <tr class="method-row config-row-alt0 expandable">
704 <td class="micon"><a class="exi" href="#expand"> </a></td>
708 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
709 <div class="fixedFont">
710 <span class="attributes"></span><b class="itemname">addEvents</b>
712 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
719 <div class="short">Used to define events on this Observable</div>
725 Used to define events on this Observable
732 <dl class="detailList">
733 <dt class="heading">Parameters:</dt>
736 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>object</b>
739 <dd>The object with the events defined</dd>
759 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
765 <tr class="method-row config-row-alt1 expandable">
766 <td class="micon"><a class="exi" href="#expand"> </a></td>
770 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
771 <div class="fixedFont">
772 <span class="attributes"></span><b class="itemname">addListener</b>
774 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
781 <div class="short">Appends an event handler to this component</div>
787 Appends an event handler to this component
794 <dl class="detailList">
795 <dt class="heading">Parameters:</dt>
798 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
801 <dd>The type of event to listen for</dd>
804 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
807 <dd>The method the event invokes</dd>
810 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
813 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
816 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
819 <dd>(optional) An object containing handler configuration<br/>properties. This may contain any of the following properties:<ul><br/><li>scope {Object} The scope in which to execute the handler function. The handler function's "this" context.</li><br/><li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li><br/><li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li><br/><li>buffer {Number} Causes the handler to be scheduled to run in an {<b>link</b> Roo.util.DelayedTask} delayed<br/>by the specified number of milliseconds. If the event fires again within that time, the original<br/>handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li><br/></ul><br><br/><p><br/><b>Combining Options</b><br><br/>Using the options argument, it is possible to combine different types of listeners:<br><br/><br><br/>A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)<br/> <pre><code><br/> el.on('click', this.onClick, this, {<br/> single: true,<br/> delay: 100,<br/> forumId: 4<br/> });<br/> </code></pre><br/><p><br/><b>Attaching multiple handlers in 1 call</b><br><br/>The method also allows for a single argument to be passed which is a config object containing properties<br/>which specify multiple handlers.<br/><pre><code><br/> el.on({<br/> 'click': {<br/> fn: this.onClick,<br/> scope: this,<br/> delay: 100<br/> }, <br/> 'mouseover': {<br/> fn: this.onMouseOver,<br/> scope: this<br/> },<br/> 'mouseout': {<br/> fn: this.onMouseOut,<br/> scope: this<br/> }<br/> });<br/> </code></pre><br/><p><br/>Or a shorthand syntax which passes the same scope object to all handlers:<br/> <pre><code><br/> el.on({<br/> 'click': this.onClick,<br/> 'mouseover': this.onMouseOver,<br/> 'mouseout': this.onMouseOut,<br/> scope: this<br/> });<br/> </code></pre></dd>
839 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
845 <tr class="method-row config-row-alt0 expandable">
846 <td class="micon"><a class="exi" href="#expand"> </a></td>
850 <a id="Roo.data.Store-method-clearFilter" name=".clearFilter"></a>
851 <div class="fixedFont">
852 <span class="attributes"></span><b class="itemname">clearFilter</b>
854 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
861 <div class="short">Revert to a view of the Record cache with no filtering applied.</div>
867 Revert to a view of the Record cache with no filtering applied.
874 <dl class="detailList">
875 <dt class="heading">Parameters:</dt>
878 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>suppressEvent</b>
881 <dd>If true the filter is cleared silently without notifying listeners</dd>
901 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
907 <tr class="method-row config-row-alt1 expandable">
908 <td class="micon"><a class="exi" href="#expand"> </a></td>
912 <a id="Roo.data.Store-method-collect" name=".collect"></a>
913 <div class="fixedFont">
914 <span class="attributes"></span><b class="itemname">collect</b>
916 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>dataIndex</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>allowNull</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>bypassFilter</i></B>)
922 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
931 <div class="short">Collects unique values for a particular dataIndex from this store.</div>
937 Collects unique values for a particular dataIndex from this store.
944 <dl class="detailList">
945 <dt class="heading">Parameters:</dt>
948 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>dataIndex</b>
951 <dd>The property to collect</dd>
954 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>allowNull</b>
957 <dd>(optional) Pass true to allow null, undefined or empty string values</dd>
960 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>bypassFilter</b>
963 <dd>(optional) Pass true to collect from all records, even ones which are filtered</dd>
971 <dl class="detailList">
972 <dt class="heading">Returns:</dt>
974 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of the unique values</dd>
990 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
996 <tr class="method-row config-row-alt0 expandable">
997 <td class="micon"><a class="exi" href="#expand"> </a></td>
1001 <a id="Roo.data.Store-method-commitChanges" name=".commitChanges"></a>
1002 <div class="fixedFont">
1003 <span class="attributes"></span><b class="itemname">commitChanges</b>
1012 <div class="short">Commit all Records with outstanding changes.</div>
1018 Commit all Records with outstanding changes. To handle updates for changes, subscribe to the<br/>Store's "update" event, and perform updating when the third parameter is Roo.data.Record.COMMIT.
1039 <td class="msource">
1041 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1047 <tr class="method-row config-row-alt1 expandable">
1048 <td class="micon"><a class="exi" href="#expand"> </a></td>
1052 <a id="Roo.data.Store-method-each" name=".each"></a>
1053 <div class="fixedFont">
1054 <span class="attributes"></span><b class="itemname">each</b>
1056 (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
1063 <div class="short">Calls the specified function for each of the Records in the cache.</div>
1069 Calls the specified function for each of the Records in the cache.
1076 <dl class="detailList">
1077 <dt class="heading">Parameters:</dt>
1080 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
1083 <dd>The function to call. The Record is passed as the first parameter.<br/>Returning <em>false</em> aborts and exits the iteration.</dd>
1086 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
1089 <dd>(optional) The scope in which to call the function (defaults to the Record).</dd>
1107 <td class="msource">
1109 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1115 <tr class="method-row config-row-alt0 expandable">
1116 <td class="micon"><a class="exi" href="#expand"> </a></td>
1120 <a id="Roo.data.Store-method-filter" name=".filter"></a>
1121 <div class="fixedFont">
1122 <span class="attributes"></span><b class="itemname">filter</b>
1124 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>field</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp <B><i>value</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>anyMatch</i></B>)
1131 <div class="short">Filter the records by a specified property.</div>
1137 Filter the records by a specified property.
1144 <dl class="detailList">
1145 <dt class="heading">Parameters:</dt>
1148 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>field</b>
1151 <dd>A field on your records</dd>
1154 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
1157 <dd>Either a string that the field<br/>should start with or a RegExp to test against the field</dd>
1160 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>anyMatch</b>
1163 <dd>True to match any part not just the beginning</dd>
1181 <td class="msource">
1183 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1189 <tr class="method-row config-row-alt1 expandable">
1190 <td class="micon"><a class="exi" href="#expand"> </a></td>
1194 <a id="Roo.data.Store-method-filterBy" name=".filterBy"></a>
1195 <div class="fixedFont">
1196 <span class="attributes"></span><b class="itemname">filterBy</b>
1198 (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
1205 <div class="short">Filter by a function.</div>
1211 Filter by a function. The specified function will be called with each<br/>record in this data source. If the function returns true the record is included,<br/>otherwise it is filtered.
1218 <dl class="detailList">
1219 <dt class="heading">Parameters:</dt>
1222 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
1225 <dd>The function to be called, it will receive 2 args (record, id)</dd>
1228 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
1231 <dd>(optional) The scope of the function (defaults to this)</dd>
1249 <td class="msource">
1251 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1257 <tr class="method-row config-row-alt0 expandable">
1258 <td class="micon"><a class="exi" href="#expand"> </a></td>
1262 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
1263 <div class="fixedFont">
1264 <span class="attributes"></span><b class="itemname">fireEvent</b>
1266 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a> <B><i>args</i></B>)
1272 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1281 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
1287 Fires the specified event with the passed parameters (minus the event name).
1294 <dl class="detailList">
1295 <dt class="heading">Parameters:</dt>
1298 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1304 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a></span> <b>args</b>
1307 <dd>Variable number of parameters are passed to handlers</dd>
1315 <dl class="detailList">
1316 <dt class="heading">Returns:</dt>
1318 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> returns false if any of the handlers return false otherwise it returns true</dd>
1332 <td class="msource">
1334 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1340 <tr class="method-row config-row-alt1 expandable">
1341 <td class="micon"><a class="exi" href="#expand"> </a></td>
1345 <a id="Roo.data.Store-method-getAt" name=".getAt"></a>
1346 <div class="fixedFont">
1347 <span class="attributes"></span><b class="itemname">getAt</b>
1349 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
1355 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>
1364 <div class="short">Get the Record at the specified index.</div>
1370 Get the Record at the specified index.
1377 <dl class="detailList">
1378 <dt class="heading">Parameters:</dt>
1381 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1384 <dd>The index of the Record to find.</dd>
1392 <dl class="detailList">
1393 <dt class="heading">Returns:</dt>
1395 <dd><span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a></span> The Record at the passed index. Returns undefined if not found.</dd>
1409 <td class="msource">
1411 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1417 <tr class="method-row config-row-alt0 expandable">
1418 <td class="micon"><a class="exi" href="#expand"> </a></td>
1422 <a id="Roo.data.Store-method-getById" name=".getById"></a>
1423 <div class="fixedFont">
1424 <span class="attributes"></span><b class="itemname">getById</b>
1426 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
1432 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>
1441 <div class="short">Get the Record with the specified id.</div>
1447 Get the Record with the specified id.
1454 <dl class="detailList">
1455 <dt class="heading">Parameters:</dt>
1458 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
1461 <dd>The id of the Record to find.</dd>
1469 <dl class="detailList">
1470 <dt class="heading">Returns:</dt>
1472 <dd><span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a></span> The Record with the passed id. Returns undefined if not found.</dd>
1486 <td class="msource">
1488 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1494 <tr class="method-row config-row-alt1 expandable">
1495 <td class="micon"><a class="exi" href="#expand"> </a></td>
1499 <a id="Roo.data.Store-method-getCount" name=".getCount"></a>
1500 <div class="fixedFont">
1501 <span class="attributes"></span><b class="itemname">getCount</b>
1510 <div class="short">Gets the number of cached records.</div>
1516 Gets the number of cached records.<br/><p><br/><em>If using paging, this may not be the total size of the dataset. If the data object<br/>used by the Reader contains the dataset size, then the getTotalCount() function returns<br/>the data set size</em>
1537 <td class="msource">
1539 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1545 <tr class="method-row config-row-alt0 expandable">
1546 <td class="micon"><a class="exi" href="#expand"> </a></td>
1550 <a id="Roo.data.Store-method-getModifiedRecords" name=".getModifiedRecords"></a>
1551 <div class="fixedFont">
1552 <span class="attributes"></span><b class="itemname">getModifiedRecords</b>
1560 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]
1569 <div class="short">Gets all records modified since the last commit.</div>
1575 Gets all records modified since the last commit. Modified records are persisted across load operations<br/>(e.g., during paging).
1586 <dl class="detailList">
1587 <dt class="heading">Returns:</dt>
1589 <dd><span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span> An array of Records containing outstanding modifications.</dd>
1603 <td class="msource">
1605 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1611 <tr class="method-row config-row-alt1 expandable">
1612 <td class="micon"><a class="exi" href="#expand"> </a></td>
1616 <a id="Roo.data.Store-method-getRange" name=".getRange"></a>
1617 <div class="fixedFont">
1618 <span class="attributes"></span><b class="itemname">getRange</b>
1620 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>startIndex</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>endIndex</i></B>)
1626 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]
1635 <div class="short">Returns a range of Records between specified indices.</div>
1641 Returns a range of Records between specified indices.
1648 <dl class="detailList">
1649 <dt class="heading">Parameters:</dt>
1652 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1655 <dd>(optional) The starting index (defaults to 0)</dd>
1658 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1661 <dd>(optional) The ending index (defaults to the last Record in the Store)</dd>
1669 <dl class="detailList">
1670 <dt class="heading">Returns:</dt>
1672 <dd><span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span> An array of Records</dd>
1686 <td class="msource">
1688 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1694 <tr class="method-row config-row-alt0 expandable">
1695 <td class="micon"><a class="exi" href="#expand"> </a></td>
1699 <a id="Roo.data.Store-method-getSortState" name=".getSortState"></a>
1700 <div class="fixedFont">
1701 <span class="attributes"></span><b class="itemname">getSortState</b>
1710 <div class="short">Returns the sort state of the Store as an object with two properties:<br/><pre><code><br/> field {String} The name of the field by which the Records are sorted<br/> direction {String} The sort order, "ASC" or "DESC"<br/></code></pre></div>
1716 Returns the sort state of the Store as an object with two properties:<br/><pre><code><br/> field {String} The name of the field by which the Records are sorted<br/> direction {String} The sort order, "ASC" or "DESC"<br/></code></pre>
1737 <td class="msource">
1739 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1745 <tr class="method-row config-row-alt1 expandable">
1746 <td class="micon"><a class="exi" href="#expand"> </a></td>
1750 <a id="Roo.data.Store-method-getTotalCount" name=".getTotalCount"></a>
1751 <div class="fixedFont">
1752 <span class="attributes"></span><b class="itemname">getTotalCount</b>
1761 <div class="short">Gets the total number of records in the dataset as returned by the server.</div>
1767 Gets the total number of records in the dataset as returned by the server.<br/><p><br/><em>If using paging, for this to be accurate, the data object used by the Reader must contain<br/>the dataset size</em>
1788 <td class="msource">
1790 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1796 <tr class="method-row config-row-alt0 expandable">
1797 <td class="micon"><a class="exi" href="#expand"> </a></td>
1801 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1802 <div class="fixedFont">
1803 <span class="attributes"></span><b class="itemname">hasListener</b>
1805 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1811 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1820 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1826 Checks to see if this object has any listeners for a specified event
1833 <dl class="detailList">
1834 <dt class="heading">Parameters:</dt>
1837 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1840 <dd>The name of the event to check for</dd>
1848 <dl class="detailList">
1849 <dt class="heading">Returns:</dt>
1851 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> True if the event is being listened for, else false</dd>
1865 <td class="msource">
1867 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1873 <tr class="method-row config-row-alt1 expandable">
1874 <td class="micon"><a class="exi" href="#expand"> </a></td>
1878 <a id="Roo.data.Store-method-indexOf" name=".indexOf"></a>
1879 <div class="fixedFont">
1880 <span class="attributes"></span><b class="itemname">indexOf</b>
1882 (<a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a> <B><i>record</i></B>)
1888 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1897 <div class="short">Get the index within the cache of the passed Record.</div>
1903 Get the index within the cache of the passed Record.
1910 <dl class="detailList">
1911 <dt class="heading">Parameters:</dt>
1914 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a></span> <b>record</b>
1917 <dd>The Roo.data.Record object to to find.</dd>
1925 <dl class="detailList">
1926 <dt class="heading">Returns:</dt>
1928 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> The index of the passed Record. Returns -1 if not found.</dd>
1942 <td class="msource">
1944 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1950 <tr class="method-row config-row-alt0 expandable">
1951 <td class="micon"><a class="exi" href="#expand"> </a></td>
1955 <a id="Roo.data.Store-method-indexOfId" name=".indexOfId"></a>
1956 <div class="fixedFont">
1957 <span class="attributes"></span><b class="itemname">indexOfId</b>
1959 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
1965 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1974 <div class="short">Get the index within the cache of the Record with the passed id.</div>
1980 Get the index within the cache of the Record with the passed id.
1987 <dl class="detailList">
1988 <dt class="heading">Parameters:</dt>
1991 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
1994 <dd>The id of the Record to find.</dd>
2002 <dl class="detailList">
2003 <dt class="heading">Returns:</dt>
2005 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> The index of the Record. Returns -1 if not found.</dd>
2019 <td class="msource">
2021 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2027 <tr class="method-row config-row-alt1 expandable">
2028 <td class="micon"><a class="exi" href="#expand"> </a></td>
2032 <a id="Roo.data.Store-method-insert" name=".insert"></a>
2033 <div class="fixedFont">
2034 <span class="attributes"></span><b class="itemname">insert</b>
2036 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>)
2043 <div class="short">Inserts Records to the Store at the given index and fires the add event.</div>
2049 Inserts Records to the Store at the given index and fires the add event.
2056 <dl class="detailList">
2057 <dt class="heading">Parameters:</dt>
2060 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2063 <dd>The start index at which to insert the passed Records.</dd>
2066 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span> <b>records</b>
2069 <dd>An Array of Roo.data.Record objects to add to the cache.</dd>
2087 <td class="msource">
2089 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2095 <tr class="method-row config-row-alt0 expandable">
2096 <td class="micon"><a class="exi" href="#expand"> </a></td>
2100 <a id="Roo.data.Store-method-load" name=".load"></a>
2101 <div class="fixedFont">
2102 <span class="attributes"></span><b class="itemname">load</b>
2104 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
2111 <div class="short">Loads the Record cache from the configured Proxy using the configured Reader.</div>
2117 Loads the Record cache from the configured Proxy using the configured Reader.<br/><p><br/>If using remote paging, then the first load call must specify the <em>start</em><br/>and <em>limit</em> properties in the options.params property to establish the initial<br/>position within the dataset, and the number of Records to cache on each read from the Proxy.<br/><p><br/><strong>It is important to note that for remote data sources, loading is asynchronous,<br/>and this call will return before the new data has been loaded. Perform any post-processing<br/>in a callback function, or in a "load" event handler.</strong><br/><p>
2124 <dl class="detailList">
2125 <dt class="heading">Parameters:</dt>
2128 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
2131 <dd>An object containing properties which control loading options:<ul><br/><li>params {Object} An object containing properties to pass as HTTP parameters to a remote data source.</li><br/><li>callback {Function} A function to be called after the Records have been loaded. The callback is<br/>passed the following arguments:<ul><br/><li>r : Roo.data.Record[]</li><br/><li>options: Options object from the load call</li><br/><li>success: Boolean success indicator</li></ul></li><br/><li>scope {Object} Scope with which to call the callback (defaults to the Store object)</li><br/><li>add {Boolean} indicator to append loaded records rather than replace the current cache.</li><br/></ul></dd>
2149 <td class="msource">
2151 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2157 <tr class="method-row config-row-alt1 expandable">
2158 <td class="micon"><a class="exi" href="#expand"> </a></td>
2162 <a id="Roo.data.Store-method-loadData" name=".loadData"></a>
2163 <div class="fixedFont">
2164 <span class="attributes"></span><b class="itemname">loadData</b>
2166 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>data</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>append</i></B>)
2173 <div class="short">Loads data from a passed data block.</div>
2179 Loads data from a passed data block. A Reader which understands the format of the data<br/>must have been configured in the constructor.
2186 <dl class="detailList">
2187 <dt class="heading">Parameters:</dt>
2190 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>data</b>
2193 <dd>The data block from which to read the Records. The format of the data expected<br/>is dependent on the type of Reader that is configured and should correspond to that Reader's readRecords parameter.</dd>
2196 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>append</b>
2199 <dd>(Optional) True to append the new Records rather than replace the existing cache.</dd>
2217 <td class="msource">
2219 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2225 <tr class="method-row config-row-alt0 expandable">
2226 <td class="micon"><a class="exi" href="#expand"> </a></td>
2230 <a id="Roo.util.Observable-method-on" name=".on"></a>
2231 <div class="fixedFont">
2232 <span class="attributes"></span><b class="itemname">on</b>
2234 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
2241 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
2247 Appends an event handler to this element (shorthand for addListener)
2254 <dl class="detailList">
2255 <dt class="heading">Parameters:</dt>
2258 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2261 <dd>The type of event to listen for</dd>
2264 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2267 <dd>The method the event invokes</dd>
2270 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
2273 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
2276 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
2297 <td class="msource">
2299 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2305 <tr class="method-row config-row-alt1 expandable">
2306 <td class="micon"><a class="exi" href="#expand"> </a></td>
2310 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
2311 <div class="fixedFont">
2312 <span class="attributes"></span><b class="itemname">purgeListeners</b>
2321 <div class="short">Removes all listeners for this object</div>
2327 Removes all listeners for this object
2348 <td class="msource">
2350 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2356 <tr class="method-row config-row-alt0 expandable">
2357 <td class="micon"><a class="exi" href="#expand"> </a></td>
2361 <a id="Roo.data.Store-method-query" name=".query"></a>
2362 <div class="fixedFont">
2363 <span class="attributes"></span><b class="itemname">query</b>
2365 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>field</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp <B><i>value</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>anyMatch</i></B>)
2380 <div class="short">Query the records by a specified property.</div>
2386 Query the records by a specified property.
2393 <dl class="detailList">
2394 <dt class="heading">Parameters:</dt>
2397 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>field</b>
2400 <dd>A field on your records</dd>
2403 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
2406 <dd>Either a string that the field<br/>should start with or a RegExp to test against the field</dd>
2409 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>anyMatch</b>
2412 <dd>True to match any part not just the beginning</dd>
2420 <dl class="detailList">
2421 <dt class="heading">Returns:</dt>
2423 <dd><span class="fixedFont">MixedCollection</span> Returns an Roo.util.MixedCollection of the matched records</dd>
2437 <td class="msource">
2439 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2445 <tr class="method-row config-row-alt1 expandable">
2446 <td class="micon"><a class="exi" href="#expand"> </a></td>
2450 <a id="Roo.data.Store-method-queryBy" name=".queryBy"></a>
2451 <div class="fixedFont">
2452 <span class="attributes"></span><b class="itemname">queryBy</b>
2454 (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
2469 <div class="short">Query by a function.</div>
2475 Query by a function. The specified function will be called with each<br/>record in this data source. If the function returns true the record is included<br/>in the results.
2482 <dl class="detailList">
2483 <dt class="heading">Parameters:</dt>
2486 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
2489 <dd>The function to be called, it will receive 2 args (record, id)</dd>
2492 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
2495 <dd>(optional) The scope of the function (defaults to this)</dd>
2503 <dl class="detailList">
2504 <dt class="heading">Returns:</dt>
2506 <dd><span class="fixedFont">MixedCollection</span> Returns an Roo.util.MixedCollection of the matched records</dd>
2520 <td class="msource">
2522 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2528 <tr class="method-row config-row-alt0 expandable">
2529 <td class="micon"><a class="exi" href="#expand"> </a></td>
2533 <a id="Roo.data.Store-method-rejectChanges" name=".rejectChanges"></a>
2534 <div class="fixedFont">
2535 <span class="attributes"></span><b class="itemname">rejectChanges</b>
2544 <div class="short">Cancel outstanding changes on all changed records.</div>
2550 Cancel outstanding changes on all changed records.
2571 <td class="msource">
2573 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2579 <tr class="method-row config-row-alt1 expandable">
2580 <td class="micon"><a class="exi" href="#expand"> </a></td>
2584 <a id="Roo.data.Store-method-reload" name=".reload"></a>
2585 <div class="fixedFont">
2586 <span class="attributes"></span><b class="itemname">reload</b>
2588 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
2595 <div class="short">Reloads the Record cache from the configured Proxy using the configured Reader and<br/>the options from the last load operation performed.</div>
2601 Reloads the Record cache from the configured Proxy using the configured Reader and<br/>the options from the last load operation performed.
2608 <dl class="detailList">
2609 <dt class="heading">Parameters:</dt>
2612 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
2615 <dd>(optional) An object containing properties which may override the options<br/>used in the last load operation. See {<b>link</b> <b>load</b>} for details (defaults to null, in which case<br/>the most recently used options are reused).</dd>
2633 <td class="msource">
2635 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2641 <tr class="method-row config-row-alt0 expandable">
2642 <td class="micon"><a class="exi" href="#expand"> </a></td>
2646 <a id="Roo.data.Store-method-remove" name=".remove"></a>
2647 <div class="fixedFont">
2648 <span class="attributes"></span><b class="itemname">remove</b>
2650 (Ext.data.Record <B><i>record</i></B>)
2657 <div class="short">Remove a Record from the Store and fires the remove event.</div>
2663 Remove a Record from the Store and fires the remove event.
2670 <dl class="detailList">
2671 <dt class="heading">Parameters:</dt>
2674 <span class="fixedFont">Ext.data.Record</span> <b>record</b>
2677 <dd>The Roo.data.Record object to remove from the cache.</dd>
2695 <td class="msource">
2697 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2703 <tr class="method-row config-row-alt1 expandable">
2704 <td class="micon"><a class="exi" href="#expand"> </a></td>
2708 <a id="Roo.data.Store-method-removeAll" name=".removeAll"></a>
2709 <div class="fixedFont">
2710 <span class="attributes"></span><b class="itemname">removeAll</b>
2719 <div class="short">Remove all Records from the Store and fires the clear event.</div>
2725 Remove all Records from the Store and fires the clear event.
2746 <td class="msource">
2748 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2754 <tr class="method-row config-row-alt0 expandable">
2755 <td class="micon"><a class="exi" href="#expand"> </a></td>
2759 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2760 <div class="fixedFont">
2761 <span class="attributes"></span><b class="itemname">removeListener</b>
2763 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
2770 <div class="short">Removes a listener</div>
2783 <dl class="detailList">
2784 <dt class="heading">Parameters:</dt>
2787 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2790 <dd>The type of event to listen for</dd>
2793 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2796 <dd>The handler to remove</dd>
2799 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
2802 <dd>(optional) The scope (this object) for the handler</dd>
2820 <td class="msource">
2822 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2828 <tr class="method-row config-row-alt1 expandable">
2829 <td class="micon"><a class="exi" href="#expand"> </a></td>
2833 <a id="Roo.data.Store-method-setDefaultSort" name=".setDefaultSort"></a>
2834 <div class="fixedFont">
2835 <span class="attributes"></span><b class="itemname">setDefaultSort</b>
2837 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>fieldName</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>dir</i></B>)
2844 <div class="short">Sets the default sort column and order to be used by the next load operation.</div>
2850 Sets the default sort column and order to be used by the next load operation.
2857 <dl class="detailList">
2858 <dt class="heading">Parameters:</dt>
2861 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>fieldName</b>
2864 <dd>The name of the field to sort by.</dd>
2867 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>dir</b>
2870 <dd>(optional) The sort order, "ASC" or "DESC" (defaults to "ASC")</dd>
2888 <td class="msource">
2890 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2896 <tr class="method-row config-row-alt0 expandable">
2897 <td class="micon"><a class="exi" href="#expand"> </a></td>
2901 <a id="Roo.data.Store-method-sort" name=".sort"></a>
2902 <div class="fixedFont">
2903 <span class="attributes"></span><b class="itemname">sort</b>
2905 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>fieldName</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>dir</i></B>)
2912 <div class="short">Sort the Records.</div>
2918 Sort the Records.<br/>If remote sorting is used, the sort is performed on the server, and the cache is<br/>reloaded. If local sorting is used, the cache is sorted internally.
2925 <dl class="detailList">
2926 <dt class="heading">Parameters:</dt>
2929 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>fieldName</b>
2932 <dd>The name of the field to sort by.</dd>
2935 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>dir</b>
2938 <dd>(optional) The sort order, "ASC" or "DESC" (defaults to "ASC")</dd>
2956 <td class="msource">
2958 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2964 <tr class="method-row config-row-alt1 expandable">
2965 <td class="micon"><a class="exi" href="#expand"> </a></td>
2969 <a id="Roo.data.Store-method-sum" name=".sum"></a>
2970 <div class="fixedFont">
2971 <span class="attributes"></span><b class="itemname">sum</b>
2973 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>property</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>start</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>end</i></B>)
2979 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
2988 <div class="short">Sums the value of <i>property</i> for each record between start and end and returns the result.</div>
2994 Sums the value of <i>property</i> for each record between start and end and returns the result.
3001 <dl class="detailList">
3002 <dt class="heading">Parameters:</dt>
3005 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
3008 <dd>A field on your records</dd>
3011 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>start</b>
3014 <dd>The record index to start at (defaults to 0)</dd>
3017 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>end</b>
3020 <dd>The last record index to include (defaults to length - 1)</dd>
3028 <dl class="detailList">
3029 <dt class="heading">Returns:</dt>
3031 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> The sum</dd>
3045 <td class="msource">
3047 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3053 <tr class="method-row config-row-alt0 expandable">
3054 <td class="micon"><a class="exi" href="#expand"> </a></td>
3058 <a id="Roo.util.Observable-method-un" name=".un"></a>
3059 <div class="fixedFont">
3060 <span class="attributes"></span><b class="itemname">un</b>
3062 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
3069 <div class="short">Removes a listener (shorthand for removeListener)</div>
3075 Removes a listener (shorthand for removeListener)
3082 <dl class="detailList">
3083 <dt class="heading">Parameters:</dt>
3086 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
3089 <dd>The type of event to listen for</dd>
3092 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
3095 <dd>The handler to remove</dd>
3098 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
3101 <dd>(optional) The scope (this object) for the handler</dd>
3119 <td class="msource">
3121 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
3130 <!-- ============================== events summary / details ======================== -->
3133 <a id="Roo.data.SimpleStore-events"></a>
3142 <table cellspacing="0" class="member-table">
3143 <caption>Events</caption>
3146 <th class="sig-header" colspan="2">Event</th>
3147 <th class="msource-header">Defined By</th>
3156 <tr class="method-row expandable config-row-alt0">
3157 <td class="micon"><a class="exi" href="#expand"> </a></td>
3160 <a id="Roo.data.Store-event-*add"></a>
3162 <div class="fixedFont">
3163 <b class="itemname">add</b> (Store <B><i>this</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
3169 <div class="short">Fires when Records have been added to the Store
3175 Fires when Records have been added to the Store
3181 <dl class="detailList">
3182 <dt class="heading">Parameters:</dt>
3185 <span class="fixedFont">Store</span> <b>this</b>
3191 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span> <b>records</b>
3194 <dd>The array of Records added</dd>
3197 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3200 <dd>The index at which the record(s) were added</dd>
3218 <td class="msource">
3219 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3223 <tr class="method-row expandable config-row-alt1">
3224 <td class="micon"><a class="exi" href="#expand"> </a></td>
3227 <a id="Roo.data.Store-event-*beforeload"></a>
3229 <div class="fixedFont">
3230 <b class="itemname">beforeload</b> (Store <B><i>this</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
3236 <div class="short">Fires before a request is made for a new data object.
3242 Fires before a request is made for a new data object. If the beforeload handler returns false<br/>the load action will be canceled.
3248 <dl class="detailList">
3249 <dt class="heading">Parameters:</dt>
3252 <span class="fixedFont">Store</span> <b>this</b>
3258 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
3261 <dd>The loading options that were specified (see {<b>link</b> <b>load</b>} for details)</dd>
3279 <td class="msource">
3280 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3284 <tr class="method-row expandable config-row-alt0">
3285 <td class="micon"><a class="exi" href="#expand"> </a></td>
3288 <a id="Roo.data.Store-event-*beforeloadadd"></a>
3290 <div class="fixedFont">
3291 <b class="itemname">beforeloadadd</b> (Store <B><i>this</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
3297 <div class="short">Fires after a new set of Records has been loaded.
3303 Fires after a new set of Records has been loaded.
3309 <dl class="detailList">
3310 <dt class="heading">Parameters:</dt>
3313 <span class="fixedFont">Store</span> <b>this</b>
3319 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span> <b>records</b>
3322 <dd>The Records that were loaded</dd>
3325 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
3328 <dd>The loading options that were specified (see {<b>link</b> <b>load</b>} for details)</dd>
3346 <td class="msource">
3347 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3351 <tr class="method-row expandable config-row-alt1">
3352 <td class="micon"><a class="exi" href="#expand"> </a></td>
3355 <a id="Roo.data.Store-event-*clear"></a>
3357 <div class="fixedFont">
3358 <b class="itemname">clear</b> (Store <B><i>this</i></B>)
3364 <div class="short">Fires when the data cache has been cleared.
3370 Fires when the data cache has been cleared.
3376 <dl class="detailList">
3377 <dt class="heading">Parameters:</dt>
3380 <span class="fixedFont">Store</span> <b>this</b>
3401 <td class="msource">
3402 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3406 <tr class="method-row expandable config-row-alt0">
3407 <td class="micon"><a class="exi" href="#expand"> </a></td>
3410 <a id="Roo.data.Store-event-*datachanged"></a>
3412 <div class="fixedFont">
3413 <b class="itemname">datachanged</b> (Store <B><i>this</i></B>)
3419 <div class="short">Fires when the data cache has changed, and a widget which is using this Store<br/>as a Record cache should refresh its view.
3425 Fires when the data cache has changed, and a widget which is using this Store<br/>as a Record cache should refresh its view.
3431 <dl class="detailList">
3432 <dt class="heading">Parameters:</dt>
3435 <span class="fixedFont">Store</span> <b>this</b>
3456 <td class="msource">
3457 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3461 <tr class="method-row expandable config-row-alt1">
3462 <td class="micon"><a class="exi" href="#expand"> </a></td>
3465 <a id="Roo.data.Store-event-*load"></a>
3467 <div class="fixedFont">
3468 <b class="itemname">load</b> (Store <B><i>this</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
3474 <div class="short">Fires after a new set of Records has been loaded, before they are added to the store.
3480 Fires after a new set of Records has been loaded, before they are added to the store.
3486 <dl class="detailList">
3487 <dt class="heading">Parameters:</dt>
3490 <span class="fixedFont">Store</span> <b>this</b>
3496 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span> <b>records</b>
3499 <dd>The Records that were loaded</dd>
3502 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
3505 <dd>The loading options that were specified (see {<b>link</b> <b>load</b>} for details)</dd>
3523 <td class="msource">
3524 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3528 <tr class="method-row expandable config-row-alt0">
3529 <td class="micon"><a class="exi" href="#expand"> </a></td>
3532 <a id="Roo.data.Store-event-*loadexception"></a>
3534 <div class="fixedFont">
3535 <b class="itemname">loadexception</b> (Proxy <B><i></i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>return</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>load</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>jsonData</i></B>)
3541 <div class="short">Fires if an exception occurs in the Proxy during loading.
3547 Fires if an exception occurs in the Proxy during loading.<br/>Called with the signature of the Proxy's "loadexception" event.<br/>If you return Json { data: [] , success: false, .... } then this will be thrown with the following args
3553 <dl class="detailList">
3554 <dt class="heading">Parameters:</dt>
3557 <span class="fixedFont">Proxy</span> <b></b>
3563 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>return</b>
3566 <dd>from JsonData.reader() - success, totalRecords, records</dd>
3569 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>load</b>
3575 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>jsonData</b>
3578 <dd>from your request (normally this contains the Exception)</dd>
3596 <td class="msource">
3597 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3601 <tr class="method-row expandable config-row-alt1">
3602 <td class="micon"><a class="exi" href="#expand"> </a></td>
3605 <a id="Roo.data.Store-event-*metachange"></a>
3607 <div class="fixedFont">
3608 <b class="itemname">metachange</b> (Store <B><i>this</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>meta</i></B>)
3614 <div class="short">Fires when this store's reader provides new metadata (fields).
3620 Fires when this store's reader provides new metadata (fields). This is currently only support for JsonReaders.
3626 <dl class="detailList">
3627 <dt class="heading">Parameters:</dt>
3630 <span class="fixedFont">Store</span> <b>this</b>
3636 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>meta</b>
3639 <dd>The JSON metadata</dd>
3657 <td class="msource">
3658 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3662 <tr class="method-row expandable config-row-alt0">
3663 <td class="micon"><a class="exi" href="#expand"> </a></td>
3666 <a id="Roo.data.Store-event-*remove"></a>
3668 <div class="fixedFont">
3669 <b class="itemname">remove</b> (Store <B><i>this</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a> <B><i>record</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
3675 <div class="short">Fires when a Record has been removed from the Store
3681 Fires when a Record has been removed from the Store
3687 <dl class="detailList">
3688 <dt class="heading">Parameters:</dt>
3691 <span class="fixedFont">Store</span> <b>this</b>
3697 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a></span> <b>record</b>
3700 <dd>The Record that was removed</dd>
3703 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3706 <dd>The index at which the record was removed</dd>
3724 <td class="msource">
3725 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3729 <tr class="method-row expandable config-row-alt1">
3730 <td class="micon"><a class="exi" href="#expand"> </a></td>
3733 <a id="Roo.data.Store-event-*update"></a>
3735 <div class="fixedFont">
3736 <b class="itemname">update</b> (Store <B><i>this</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a> <B><i>record</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>operation</i></B>)
3742 <div class="short">Fires when a Record has been updated
3748 Fires when a Record has been updated
3754 <dl class="detailList">
3755 <dt class="heading">Parameters:</dt>
3758 <span class="fixedFont">Store</span> <b>this</b>
3764 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a></span> <b>record</b>
3767 <dd>The Record that was updated</dd>
3770 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>operation</b>
3773 <dd>The update operation being performed. Value may be one of:<br/><pre><code><br/> Roo.data.Record.EDIT<br/> Roo.data.Record.REJECT<br/> Roo.data.Record.COMMIT<br/></code></pre></dd>
3791 <td class="msource">
3792 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3803 <!-- ============================== footer ================================= -->
3804 <div class="fineprint" style="clear:both">
3806 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Fri Sep 18 2015 12:41:22 GMT+0800 (HKT)
3808 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>