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>
144 <div class="long">An object containing properties which are to be sent as parameters<br/>on any HTTP request</div>
152 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
158 <tr class="config-row expandable config-row-alt1 notInherited">
159 <td class="micon"><a class="exi" href="#expand"> </a></td>
162 <a id="Roo.data.SimpleStore-cfg-data" name=".data"></a>
163 <div class="fixedFont">
164 <b class="itemname">data</b> : <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
170 <div class="short">The multi-dimensional array of data</div>
174 <div class="long">The multi-dimensional array of data</div>
188 <tr class="config-row expandable config-row-alt0 notInherited">
189 <td class="micon"><a class="exi" href="#expand"> </a></td>
192 <a id="Roo.data.SimpleStore-cfg-fields" name=".fields"></a>
193 <div class="fixedFont">
194 <b class="itemname">fields</b> : <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
200 <div class="short">An array of field definition objects, or field name strings.</div>
204 <div class="long">An array of field definition objects, or field name strings.</div>
218 <tr class="config-row expandable config-row-alt1 notInherited">
219 <td class="micon"><a class="exi" href="#expand"> </a></td>
222 <a id="Roo.data.SimpleStore-cfg-id" name=".id"></a>
223 <div class="fixedFont">
224 <b class="itemname">id</b> : <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
230 <div class="short">The array index of the record id.</div>
234 <div class="long">The array index of the record id. Leave blank to auto generate ids.</div>
248 <tr class="config-row expandable config-row-alt0">
249 <td class="micon"><a class="exi" href="#expand"> </a></td>
252 <a id="Roo.data.Store-cfg-isLocal" name=".isLocal"></a>
253 <div class="fixedFont">
254 <b class="itemname">isLocal</b> : boolean
260 <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>
264 <div class="long">flag if data is locally available (and can be always looked up<br/>without a remote query - used by combo/forms at present.</div>
272 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
278 <tr class="config-row expandable config-row-alt1">
279 <td class="micon"><a class="exi" href="#expand"> </a></td>
282 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
283 <div class="fixedFont">
284 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
290 <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>
294 <div class="long">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></div>
302 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
308 <tr class="config-row expandable config-row-alt0">
309 <td class="micon"><a class="exi" href="#expand"> </a></td>
312 <a id="Roo.data.Store-cfg-multiSort" name=".multiSort"></a>
313 <div class="fixedFont">
314 <b class="itemname">multiSort</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
320 <div class="short">enable multi column sorting (sort is based on the order of columns, remote only at present)</div>
324 <div class="long">enable multi column sorting (sort is based on the order of columns, remote only at present)</div>
332 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
338 <tr class="config-row expandable config-row-alt1">
339 <td class="micon"><a class="exi" href="#expand"> </a></td>
342 <a id="Roo.data.Store-cfg-proxy" name=".proxy"></a>
343 <div class="fixedFont">
344 <b class="itemname">proxy</b> : <a href="./Roo.data.DataProxy.html#constructor" roo:cls="Roo.data.DataProxy.html#constructor">Roo.data.DataProxy</a>
350 <div class="short">The Proxy object which provides access to a data object.</div>
354 <div class="long">The Proxy object which provides access to a data object.</div>
362 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
368 <tr class="config-row expandable config-row-alt0">
369 <td class="micon"><a class="exi" href="#expand"> </a></td>
372 <a id="Roo.data.Store-cfg-pruneModifiedRecords" name=".pruneModifiedRecords"></a>
373 <div class="fixedFont">
374 <b class="itemname">pruneModifiedRecords</b> : boolean
380 <div class="short">True to clear all modified record information each time the store is<br/>loaded or when a record is removed.</div>
384 <div class="long">True to clear all modified record information each time the store is<br/>loaded or when a record is removed. (defaults to false).</div>
392 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
398 <tr class="config-row expandable config-row-alt1">
399 <td class="micon"><a class="exi" href="#expand"> </a></td>
402 <a id="Roo.data.Store-cfg-reader" name=".reader"></a>
403 <div class="fixedFont">
404 <b class="itemname">reader</b> : Roo.data.Reader
410 <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>
414 <div class="long">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>
422 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
428 <tr class="config-row expandable config-row-alt0">
429 <td class="micon"><a class="exi" href="#expand"> </a></td>
432 <a id="Roo.data.Store-cfg-remoteSort" name=".remoteSort"></a>
433 <div class="fixedFont">
434 <b class="itemname">remoteSort</b> : boolean
440 <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>
444 <div class="long">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>
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-alt1">
459 <td class="micon"><a class="exi" href="#expand"> </a></td>
462 <a id="Roo.data.Store-cfg-sortInfo" name=".sortInfo"></a>
463 <div class="fixedFont">
464 <b class="itemname">sortInfo</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
470 <div class="short">A config object in the format: {field: "fieldName", direction: "ASC|DESC"}</div>
474 <div class="long">A config object in the format: {field: "fieldName", direction: "ASC|DESC"}</div>
482 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
498 <!-- ============================== public properties ==================== -->
502 <a id="Roo.data.SimpleStore-props"></a>
508 <table cellspacing="0" class="member-table">
509 <caption class="Empty">Public Properties - Has None</caption>
515 <!-- ============================== methods summary / details ======================== -->
518 <a id="Roo.data.SimpleStore-methods"></a>
519 <!-- constructor?? -->
526 <!-- then dynamics first -->
533 <table cellspacing="0" class="member-table">
534 <caption>Public Methods</caption>
536 <th class="sig-header" colspan="2">Method</th>
537 <th class="msource-header">Defined By</th>
547 <tr class="method-row config-row-alt0 expandable notInherited">
548 <td class="micon"><a class="exi" href="#expand"> </a></td>
552 <a id="Roo.data-method-SimpleStore" name=".SimpleStore"></a>
553 <div class="fixedFont">
554 <span class="attributes">new <B>Roo.data.</B></span><b class="itemname">SimpleStore</b>
556 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
564 <div class="short">Create a new Roo.data.SimpleStore</div>
571 Create a new Roo.data.SimpleStore
574 <dl class="detailList">
575 <dt class="heading">Parameters:</dt>
578 <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>
605 <tr class="method-row config-row-alt1 expandable">
606 <td class="micon"><a class="exi" href="#expand"> </a></td>
610 <a id="Roo.data.Store-method-add" name=".add"></a>
611 <div class="fixedFont">
612 <span class="attributes"></span><b class="itemname">add</b>
614 (<a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>)
621 <div class="short">Add Records to the Store and fires the add event.</div>
627 Add Records to the Store and fires the add event.
634 <dl class="detailList">
635 <dt class="heading">Parameters:</dt>
638 <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>
641 <dd>An Array of Roo.data.Record objects to add to the cache.</dd>
661 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
667 <tr class="method-row config-row-alt0 expandable">
668 <td class="micon"><a class="exi" href="#expand"> </a></td>
672 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
673 <div class="fixedFont">
674 <span class="attributes"></span><b class="itemname">addEvents</b>
676 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
683 <div class="short">Used to define events on this Observable</div>
689 Used to define events on this Observable
696 <dl class="detailList">
697 <dt class="heading">Parameters:</dt>
700 <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>
703 <dd>The object with the events defined</dd>
723 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
729 <tr class="method-row config-row-alt1 expandable">
730 <td class="micon"><a class="exi" href="#expand"> </a></td>
734 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
735 <div class="fixedFont">
736 <span class="attributes"></span><b class="itemname">addListener</b>
738 (<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>)
745 <div class="short">Appends an event handler to this component</div>
751 Appends an event handler to this component
758 <dl class="detailList">
759 <dt class="heading">Parameters:</dt>
762 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
765 <dd>The type of event to listen for</dd>
768 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
771 <dd>The method the event invokes</dd>
774 <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>
777 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
780 <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>
783 <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>
803 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
809 <tr class="method-row config-row-alt0 expandable">
810 <td class="micon"><a class="exi" href="#expand"> </a></td>
814 <a id="Roo.data.Store-method-clearFilter" name=".clearFilter"></a>
815 <div class="fixedFont">
816 <span class="attributes"></span><b class="itemname">clearFilter</b>
818 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
825 <div class="short">Revert to a view of the Record cache with no filtering applied.</div>
831 Revert to a view of the Record cache with no filtering applied.
838 <dl class="detailList">
839 <dt class="heading">Parameters:</dt>
842 <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>
845 <dd>If true the filter is cleared silently without notifying listeners</dd>
865 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
871 <tr class="method-row config-row-alt1 expandable">
872 <td class="micon"><a class="exi" href="#expand"> </a></td>
876 <a id="Roo.data.Store-method-collect" name=".collect"></a>
877 <div class="fixedFont">
878 <span class="attributes"></span><b class="itemname">collect</b>
880 (<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>)
886 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
895 <div class="short">Collects unique values for a particular dataIndex from this store.</div>
901 Collects unique values for a particular dataIndex from this store.
908 <dl class="detailList">
909 <dt class="heading">Parameters:</dt>
912 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>dataIndex</b>
915 <dd>The property to collect</dd>
918 <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>
921 <dd>(optional) Pass true to allow null, undefined or empty string values</dd>
924 <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>
927 <dd>(optional) Pass true to collect from all records, even ones which are filtered</dd>
935 <dl class="detailList">
936 <dt class="heading">Returns:</dt>
938 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of the unique values</dd>
954 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
960 <tr class="method-row config-row-alt0 expandable">
961 <td class="micon"><a class="exi" href="#expand"> </a></td>
965 <a id="Roo.data.Store-method-commitChanges" name=".commitChanges"></a>
966 <div class="fixedFont">
967 <span class="attributes"></span><b class="itemname">commitChanges</b>
976 <div class="short">Commit all Records with outstanding changes.</div>
982 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.
1003 <td class="msource">
1005 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1011 <tr class="method-row config-row-alt1 expandable">
1012 <td class="micon"><a class="exi" href="#expand"> </a></td>
1016 <a id="Roo.data.Store-method-each" name=".each"></a>
1017 <div class="fixedFont">
1018 <span class="attributes"></span><b class="itemname">each</b>
1020 (<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>)
1027 <div class="short">Calls the specified function for each of the Records in the cache.</div>
1033 Calls the specified function for each of the Records in the cache.
1040 <dl class="detailList">
1041 <dt class="heading">Parameters:</dt>
1044 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
1047 <dd>The function to call. The Record is passed as the first parameter.<br/>Returning <em>false</em> aborts and exits the iteration.</dd>
1050 <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>
1053 <dd>(optional) The scope in which to call the function (defaults to the Record).</dd>
1071 <td class="msource">
1073 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1079 <tr class="method-row config-row-alt0 expandable">
1080 <td class="micon"><a class="exi" href="#expand"> </a></td>
1084 <a id="Roo.data.Store-method-filter" name=".filter"></a>
1085 <div class="fixedFont">
1086 <span class="attributes"></span><b class="itemname">filter</b>
1088 (<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>)
1095 <div class="short">Filter the records by a specified property.</div>
1101 Filter the records by a specified property.
1108 <dl class="detailList">
1109 <dt class="heading">Parameters:</dt>
1112 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>field</b>
1115 <dd>A field on your records</dd>
1118 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
1121 <dd>Either a string that the field<br/>should start with or a RegExp to test against the field</dd>
1124 <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>
1127 <dd>True to match any part not just the beginning</dd>
1145 <td class="msource">
1147 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1153 <tr class="method-row config-row-alt1 expandable">
1154 <td class="micon"><a class="exi" href="#expand"> </a></td>
1158 <a id="Roo.data.Store-method-filterBy" name=".filterBy"></a>
1159 <div class="fixedFont">
1160 <span class="attributes"></span><b class="itemname">filterBy</b>
1162 (<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>)
1169 <div class="short">Filter by a function.</div>
1175 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.
1182 <dl class="detailList">
1183 <dt class="heading">Parameters:</dt>
1186 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
1189 <dd>The function to be called, it will receive 2 args (record, id)</dd>
1192 <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>
1195 <dd>(optional) The scope of the function (defaults to this)</dd>
1213 <td class="msource">
1215 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1221 <tr class="method-row config-row-alt0 expandable">
1222 <td class="micon"><a class="exi" href="#expand"> </a></td>
1226 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
1227 <div class="fixedFont">
1228 <span class="attributes"></span><b class="itemname">fireEvent</b>
1230 (<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>)
1236 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1245 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
1251 Fires the specified event with the passed parameters (minus the event name).
1258 <dl class="detailList">
1259 <dt class="heading">Parameters:</dt>
1262 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1268 <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>
1271 <dd>Variable number of parameters are passed to handlers</dd>
1279 <dl class="detailList">
1280 <dt class="heading">Returns:</dt>
1282 <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>
1296 <td class="msource">
1298 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1304 <tr class="method-row config-row-alt1 expandable">
1305 <td class="micon"><a class="exi" href="#expand"> </a></td>
1309 <a id="Roo.data.Store-method-getAt" name=".getAt"></a>
1310 <div class="fixedFont">
1311 <span class="attributes"></span><b class="itemname">getAt</b>
1313 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
1319 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>
1328 <div class="short">Get the Record at the specified index.</div>
1334 Get the Record at the specified index.
1341 <dl class="detailList">
1342 <dt class="heading">Parameters:</dt>
1345 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1348 <dd>The index of the Record to find.</dd>
1356 <dl class="detailList">
1357 <dt class="heading">Returns:</dt>
1359 <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>
1373 <td class="msource">
1375 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1381 <tr class="method-row config-row-alt0 expandable">
1382 <td class="micon"><a class="exi" href="#expand"> </a></td>
1386 <a id="Roo.data.Store-method-getById" name=".getById"></a>
1387 <div class="fixedFont">
1388 <span class="attributes"></span><b class="itemname">getById</b>
1390 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
1396 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>
1405 <div class="short">Get the Record with the specified id.</div>
1411 Get the Record with the specified id.
1418 <dl class="detailList">
1419 <dt class="heading">Parameters:</dt>
1422 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
1425 <dd>The id of the Record to find.</dd>
1433 <dl class="detailList">
1434 <dt class="heading">Returns:</dt>
1436 <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>
1450 <td class="msource">
1452 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1458 <tr class="method-row config-row-alt1 expandable">
1459 <td class="micon"><a class="exi" href="#expand"> </a></td>
1463 <a id="Roo.data.Store-method-getCount" name=".getCount"></a>
1464 <div class="fixedFont">
1465 <span class="attributes"></span><b class="itemname">getCount</b>
1474 <div class="short">Gets the number of cached records.</div>
1480 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>
1501 <td class="msource">
1503 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1509 <tr class="method-row config-row-alt0 expandable">
1510 <td class="micon"><a class="exi" href="#expand"> </a></td>
1514 <a id="Roo.data.Store-method-getModifiedRecords" name=".getModifiedRecords"></a>
1515 <div class="fixedFont">
1516 <span class="attributes"></span><b class="itemname">getModifiedRecords</b>
1524 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]
1533 <div class="short">Gets all records modified since the last commit.</div>
1539 Gets all records modified since the last commit. Modified records are persisted across load operations<br/>(e.g., during paging).
1550 <dl class="detailList">
1551 <dt class="heading">Returns:</dt>
1553 <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>
1567 <td class="msource">
1569 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1575 <tr class="method-row config-row-alt1 expandable">
1576 <td class="micon"><a class="exi" href="#expand"> </a></td>
1580 <a id="Roo.data.Store-method-getRange" name=".getRange"></a>
1581 <div class="fixedFont">
1582 <span class="attributes"></span><b class="itemname">getRange</b>
1584 (<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>)
1590 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]
1599 <div class="short">Returns a range of Records between specified indices.</div>
1605 Returns a range of Records between specified indices.
1612 <dl class="detailList">
1613 <dt class="heading">Parameters:</dt>
1616 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1619 <dd>(optional) The starting index (defaults to 0)</dd>
1622 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1625 <dd>(optional) The ending index (defaults to the last Record in the Store)</dd>
1633 <dl class="detailList">
1634 <dt class="heading">Returns:</dt>
1636 <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>
1650 <td class="msource">
1652 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1658 <tr class="method-row config-row-alt0 expandable">
1659 <td class="micon"><a class="exi" href="#expand"> </a></td>
1663 <a id="Roo.data.Store-method-getSortState" name=".getSortState"></a>
1664 <div class="fixedFont">
1665 <span class="attributes"></span><b class="itemname">getSortState</b>
1674 <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>
1680 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>
1701 <td class="msource">
1703 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1709 <tr class="method-row config-row-alt1 expandable">
1710 <td class="micon"><a class="exi" href="#expand"> </a></td>
1714 <a id="Roo.data.Store-method-getTotalCount" name=".getTotalCount"></a>
1715 <div class="fixedFont">
1716 <span class="attributes"></span><b class="itemname">getTotalCount</b>
1725 <div class="short">Gets the total number of records in the dataset as returned by the server.</div>
1731 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>
1752 <td class="msource">
1754 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1760 <tr class="method-row config-row-alt0 expandable">
1761 <td class="micon"><a class="exi" href="#expand"> </a></td>
1765 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1766 <div class="fixedFont">
1767 <span class="attributes"></span><b class="itemname">hasListener</b>
1769 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1775 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1784 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1790 Checks to see if this object has any listeners for a specified event
1797 <dl class="detailList">
1798 <dt class="heading">Parameters:</dt>
1801 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1804 <dd>The name of the event to check for</dd>
1812 <dl class="detailList">
1813 <dt class="heading">Returns:</dt>
1815 <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>
1829 <td class="msource">
1831 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1837 <tr class="method-row config-row-alt1 expandable">
1838 <td class="micon"><a class="exi" href="#expand"> </a></td>
1842 <a id="Roo.data.Store-method-indexOf" name=".indexOf"></a>
1843 <div class="fixedFont">
1844 <span class="attributes"></span><b class="itemname">indexOf</b>
1846 (<a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a> <B><i>record</i></B>)
1852 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1861 <div class="short">Get the index within the cache of the passed Record.</div>
1867 Get the index within the cache of the passed Record.
1874 <dl class="detailList">
1875 <dt class="heading">Parameters:</dt>
1878 <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>
1881 <dd>The Roo.data.Record object to to find.</dd>
1889 <dl class="detailList">
1890 <dt class="heading">Returns:</dt>
1892 <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>
1906 <td class="msource">
1908 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1914 <tr class="method-row config-row-alt0 expandable">
1915 <td class="micon"><a class="exi" href="#expand"> </a></td>
1919 <a id="Roo.data.Store-method-indexOfId" name=".indexOfId"></a>
1920 <div class="fixedFont">
1921 <span class="attributes"></span><b class="itemname">indexOfId</b>
1923 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
1929 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1938 <div class="short">Get the index within the cache of the Record with the passed id.</div>
1944 Get the index within the cache of the Record with the passed id.
1951 <dl class="detailList">
1952 <dt class="heading">Parameters:</dt>
1955 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
1958 <dd>The id of the Record to find.</dd>
1966 <dl class="detailList">
1967 <dt class="heading">Returns:</dt>
1969 <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>
1983 <td class="msource">
1985 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1991 <tr class="method-row config-row-alt1 expandable">
1992 <td class="micon"><a class="exi" href="#expand"> </a></td>
1996 <a id="Roo.data.Store-method-insert" name=".insert"></a>
1997 <div class="fixedFont">
1998 <span class="attributes"></span><b class="itemname">insert</b>
2000 (<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>)
2007 <div class="short">Inserts Records to the Store at the given index and fires the add event.</div>
2013 Inserts Records to the Store at the given index and fires the add event.
2020 <dl class="detailList">
2021 <dt class="heading">Parameters:</dt>
2024 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2027 <dd>The start index at which to insert the passed Records.</dd>
2030 <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>
2033 <dd>An Array of Roo.data.Record objects to add to the cache.</dd>
2051 <td class="msource">
2053 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2059 <tr class="method-row config-row-alt0 expandable">
2060 <td class="micon"><a class="exi" href="#expand"> </a></td>
2064 <a id="Roo.data.Store-method-load" name=".load"></a>
2065 <div class="fixedFont">
2066 <span class="attributes"></span><b class="itemname">load</b>
2068 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
2075 <div class="short">Loads the Record cache from the configured Proxy using the configured Reader.</div>
2081 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>
2088 <dl class="detailList">
2089 <dt class="heading">Parameters:</dt>
2092 <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>
2095 <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>
2113 <td class="msource">
2115 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2121 <tr class="method-row config-row-alt1 expandable">
2122 <td class="micon"><a class="exi" href="#expand"> </a></td>
2126 <a id="Roo.data.Store-method-loadData" name=".loadData"></a>
2127 <div class="fixedFont">
2128 <span class="attributes"></span><b class="itemname">loadData</b>
2130 (<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>)
2137 <div class="short">Loads data from a passed data block.</div>
2143 Loads data from a passed data block. A Reader which understands the format of the data<br/>must have been configured in the constructor.
2150 <dl class="detailList">
2151 <dt class="heading">Parameters:</dt>
2154 <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>
2157 <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>
2160 <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>
2163 <dd>(Optional) True to append the new Records rather than replace the existing cache.</dd>
2181 <td class="msource">
2183 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2189 <tr class="method-row config-row-alt0 expandable">
2190 <td class="micon"><a class="exi" href="#expand"> </a></td>
2194 <a id="Roo.util.Observable-method-on" name=".on"></a>
2195 <div class="fixedFont">
2196 <span class="attributes"></span><b class="itemname">on</b>
2198 (<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>)
2205 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
2211 Appends an event handler to this element (shorthand for addListener)
2218 <dl class="detailList">
2219 <dt class="heading">Parameters:</dt>
2222 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2225 <dd>The type of event to listen for</dd>
2228 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2231 <dd>The method the event invokes</dd>
2234 <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>
2237 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
2240 <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>
2261 <td class="msource">
2263 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2269 <tr class="method-row config-row-alt1 expandable">
2270 <td class="micon"><a class="exi" href="#expand"> </a></td>
2274 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
2275 <div class="fixedFont">
2276 <span class="attributes"></span><b class="itemname">purgeListeners</b>
2285 <div class="short">Removes all listeners for this object</div>
2291 Removes all listeners for this object
2312 <td class="msource">
2314 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2320 <tr class="method-row config-row-alt0 expandable">
2321 <td class="micon"><a class="exi" href="#expand"> </a></td>
2325 <a id="Roo.data.Store-method-query" name=".query"></a>
2326 <div class="fixedFont">
2327 <span class="attributes"></span><b class="itemname">query</b>
2329 (<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>)
2344 <div class="short">Query the records by a specified property.</div>
2350 Query the records by a specified property.
2357 <dl class="detailList">
2358 <dt class="heading">Parameters:</dt>
2361 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>field</b>
2364 <dd>A field on your records</dd>
2367 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
2370 <dd>Either a string that the field<br/>should start with or a RegExp to test against the field</dd>
2373 <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>
2376 <dd>True to match any part not just the beginning</dd>
2384 <dl class="detailList">
2385 <dt class="heading">Returns:</dt>
2387 <dd><span class="fixedFont">MixedCollection</span> Returns an Roo.util.MixedCollection of the matched records</dd>
2401 <td class="msource">
2403 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2409 <tr class="method-row config-row-alt1 expandable">
2410 <td class="micon"><a class="exi" href="#expand"> </a></td>
2414 <a id="Roo.data.Store-method-queryBy" name=".queryBy"></a>
2415 <div class="fixedFont">
2416 <span class="attributes"></span><b class="itemname">queryBy</b>
2418 (<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>)
2433 <div class="short">Query by a function.</div>
2439 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.
2446 <dl class="detailList">
2447 <dt class="heading">Parameters:</dt>
2450 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
2453 <dd>The function to be called, it will receive 2 args (record, id)</dd>
2456 <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>
2459 <dd>(optional) The scope of the function (defaults to this)</dd>
2467 <dl class="detailList">
2468 <dt class="heading">Returns:</dt>
2470 <dd><span class="fixedFont">MixedCollection</span> Returns an Roo.util.MixedCollection of the matched records</dd>
2484 <td class="msource">
2486 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2492 <tr class="method-row config-row-alt0 expandable">
2493 <td class="micon"><a class="exi" href="#expand"> </a></td>
2497 <a id="Roo.data.Store-method-rejectChanges" name=".rejectChanges"></a>
2498 <div class="fixedFont">
2499 <span class="attributes"></span><b class="itemname">rejectChanges</b>
2508 <div class="short">Cancel outstanding changes on all changed records.</div>
2514 Cancel outstanding changes on all changed records.
2535 <td class="msource">
2537 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2543 <tr class="method-row config-row-alt1 expandable">
2544 <td class="micon"><a class="exi" href="#expand"> </a></td>
2548 <a id="Roo.data.Store-method-reload" name=".reload"></a>
2549 <div class="fixedFont">
2550 <span class="attributes"></span><b class="itemname">reload</b>
2552 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
2559 <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>
2565 Reloads the Record cache from the configured Proxy using the configured Reader and<br/>the options from the last load operation performed.
2572 <dl class="detailList">
2573 <dt class="heading">Parameters:</dt>
2576 <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>
2579 <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>
2597 <td class="msource">
2599 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2605 <tr class="method-row config-row-alt0 expandable">
2606 <td class="micon"><a class="exi" href="#expand"> </a></td>
2610 <a id="Roo.data.Store-method-remove" name=".remove"></a>
2611 <div class="fixedFont">
2612 <span class="attributes"></span><b class="itemname">remove</b>
2614 (Ext.data.Record <B><i>record</i></B>)
2621 <div class="short">Remove a Record from the Store and fires the remove event.</div>
2627 Remove a Record from the Store and fires the remove event.
2634 <dl class="detailList">
2635 <dt class="heading">Parameters:</dt>
2638 <span class="fixedFont">Ext.data.Record</span> <b>record</b>
2641 <dd>The Roo.data.Record object to remove from the cache.</dd>
2659 <td class="msource">
2661 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2667 <tr class="method-row config-row-alt1 expandable">
2668 <td class="micon"><a class="exi" href="#expand"> </a></td>
2672 <a id="Roo.data.Store-method-removeAll" name=".removeAll"></a>
2673 <div class="fixedFont">
2674 <span class="attributes"></span><b class="itemname">removeAll</b>
2683 <div class="short">Remove all Records from the Store and fires the clear event.</div>
2689 Remove all Records from the Store and fires the clear event.
2710 <td class="msource">
2712 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2718 <tr class="method-row config-row-alt0 expandable">
2719 <td class="micon"><a class="exi" href="#expand"> </a></td>
2723 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2724 <div class="fixedFont">
2725 <span class="attributes"></span><b class="itemname">removeListener</b>
2727 (<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>)
2734 <div class="short">Removes a listener</div>
2747 <dl class="detailList">
2748 <dt class="heading">Parameters:</dt>
2751 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2754 <dd>The type of event to listen for</dd>
2757 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2760 <dd>The handler to remove</dd>
2763 <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>
2766 <dd>(optional) The scope (this object) for the handler</dd>
2784 <td class="msource">
2786 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2792 <tr class="method-row config-row-alt1 expandable">
2793 <td class="micon"><a class="exi" href="#expand"> </a></td>
2797 <a id="Roo.data.Store-method-setDefaultSort" name=".setDefaultSort"></a>
2798 <div class="fixedFont">
2799 <span class="attributes"></span><b class="itemname">setDefaultSort</b>
2801 (<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>)
2808 <div class="short">Sets the default sort column and order to be used by the next load operation.</div>
2814 Sets the default sort column and order to be used by the next load operation.
2821 <dl class="detailList">
2822 <dt class="heading">Parameters:</dt>
2825 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>fieldName</b>
2828 <dd>The name of the field to sort by.</dd>
2831 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>dir</b>
2834 <dd>(optional) The sort order, "ASC" or "DESC" (defaults to "ASC")</dd>
2852 <td class="msource">
2854 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2860 <tr class="method-row config-row-alt0 expandable">
2861 <td class="micon"><a class="exi" href="#expand"> </a></td>
2865 <a id="Roo.data.Store-method-sort" name=".sort"></a>
2866 <div class="fixedFont">
2867 <span class="attributes"></span><b class="itemname">sort</b>
2869 (<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>)
2876 <div class="short">Sort the Records.</div>
2882 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.
2889 <dl class="detailList">
2890 <dt class="heading">Parameters:</dt>
2893 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>fieldName</b>
2896 <dd>The name of the field to sort by.</dd>
2899 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>dir</b>
2902 <dd>(optional) The sort order, "ASC" or "DESC" (defaults to "ASC")</dd>
2920 <td class="msource">
2922 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2928 <tr class="method-row config-row-alt1 expandable">
2929 <td class="micon"><a class="exi" href="#expand"> </a></td>
2933 <a id="Roo.data.Store-method-sum" name=".sum"></a>
2934 <div class="fixedFont">
2935 <span class="attributes"></span><b class="itemname">sum</b>
2937 (<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>)
2943 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
2952 <div class="short">Sums the value of <i>property</i> for each record between start and end and returns the result.</div>
2958 Sums the value of <i>property</i> for each record between start and end and returns the result.
2965 <dl class="detailList">
2966 <dt class="heading">Parameters:</dt>
2969 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
2972 <dd>A field on your records</dd>
2975 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>start</b>
2978 <dd>The record index to start at (defaults to 0)</dd>
2981 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>end</b>
2984 <dd>The last record index to include (defaults to length - 1)</dd>
2992 <dl class="detailList">
2993 <dt class="heading">Returns:</dt>
2995 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> The sum</dd>
3009 <td class="msource">
3011 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3017 <tr class="method-row config-row-alt0 expandable">
3018 <td class="micon"><a class="exi" href="#expand"> </a></td>
3022 <a id="Roo.util.Observable-method-un" name=".un"></a>
3023 <div class="fixedFont">
3024 <span class="attributes"></span><b class="itemname">un</b>
3026 (<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>)
3033 <div class="short">Removes a listener (shorthand for removeListener)</div>
3039 Removes a listener (shorthand for removeListener)
3046 <dl class="detailList">
3047 <dt class="heading">Parameters:</dt>
3050 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
3053 <dd>The type of event to listen for</dd>
3056 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
3059 <dd>The handler to remove</dd>
3062 <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>
3065 <dd>(optional) The scope (this object) for the handler</dd>
3083 <td class="msource">
3085 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
3094 <!-- ============================== events summary / details ======================== -->
3097 <a id="Roo.data.SimpleStore-events"></a>
3106 <table cellspacing="0" class="member-table">
3107 <caption>Events</caption>
3110 <th class="sig-header" colspan="2">Event</th>
3111 <th class="msource-header">Defined By</th>
3120 <tr class="method-row expandable config-row-alt0">
3121 <td class="micon"><a class="exi" href="#expand"> </a></td>
3124 <a id="Roo.data.Store-event-*add"></a>
3126 <div class="fixedFont">
3127 <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>)
3133 <div class="short">Fires when Records have been added to the Store
3139 Fires when Records have been added to the Store
3145 <dl class="detailList">
3146 <dt class="heading">Parameters:</dt>
3149 <span class="fixedFont">Store</span> <b>this</b>
3155 <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>
3158 <dd>The array of Records added</dd>
3161 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3164 <dd>The index at which the record(s) were added</dd>
3182 <td class="msource">
3183 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3187 <tr class="method-row expandable config-row-alt1">
3188 <td class="micon"><a class="exi" href="#expand"> </a></td>
3191 <a id="Roo.data.Store-event-*beforeload"></a>
3193 <div class="fixedFont">
3194 <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>)
3200 <div class="short">Fires before a request is made for a new data object.
3206 Fires before a request is made for a new data object. If the beforeload handler returns false<br/>the load action will be canceled.
3212 <dl class="detailList">
3213 <dt class="heading">Parameters:</dt>
3216 <span class="fixedFont">Store</span> <b>this</b>
3222 <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>
3225 <dd>The loading options that were specified (see {<b>link</b> <b>load</b>} for details)</dd>
3243 <td class="msource">
3244 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3248 <tr class="method-row expandable config-row-alt0">
3249 <td class="micon"><a class="exi" href="#expand"> </a></td>
3252 <a id="Roo.data.Store-event-*beforeloadadd"></a>
3254 <div class="fixedFont">
3255 <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>)
3261 <div class="short">Fires after a new set of Records has been loaded.
3267 Fires after a new set of Records has been loaded.
3273 <dl class="detailList">
3274 <dt class="heading">Parameters:</dt>
3277 <span class="fixedFont">Store</span> <b>this</b>
3283 <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>
3286 <dd>The Records that were loaded</dd>
3289 <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>
3292 <dd>The loading options that were specified (see {<b>link</b> <b>load</b>} for details)</dd>
3310 <td class="msource">
3311 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3315 <tr class="method-row expandable config-row-alt1">
3316 <td class="micon"><a class="exi" href="#expand"> </a></td>
3319 <a id="Roo.data.Store-event-*clear"></a>
3321 <div class="fixedFont">
3322 <b class="itemname">clear</b> (Store <B><i>this</i></B>)
3328 <div class="short">Fires when the data cache has been cleared.
3334 Fires when the data cache has been cleared.
3340 <dl class="detailList">
3341 <dt class="heading">Parameters:</dt>
3344 <span class="fixedFont">Store</span> <b>this</b>
3365 <td class="msource">
3366 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3370 <tr class="method-row expandable config-row-alt0">
3371 <td class="micon"><a class="exi" href="#expand"> </a></td>
3374 <a id="Roo.data.Store-event-*datachanged"></a>
3376 <div class="fixedFont">
3377 <b class="itemname">datachanged</b> (Store <B><i>this</i></B>)
3383 <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.
3389 Fires when the data cache has changed, and a widget which is using this Store<br/>as a Record cache should refresh its view.
3395 <dl class="detailList">
3396 <dt class="heading">Parameters:</dt>
3399 <span class="fixedFont">Store</span> <b>this</b>
3420 <td class="msource">
3421 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3425 <tr class="method-row expandable config-row-alt1">
3426 <td class="micon"><a class="exi" href="#expand"> </a></td>
3429 <a id="Roo.data.Store-event-*load"></a>
3431 <div class="fixedFont">
3432 <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>)
3438 <div class="short">Fires after a new set of Records has been loaded, before they are added to the store.
3444 Fires after a new set of Records has been loaded, before they are added to the store.
3450 <dl class="detailList">
3451 <dt class="heading">Parameters:</dt>
3454 <span class="fixedFont">Store</span> <b>this</b>
3460 <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>
3463 <dd>The Records that were loaded</dd>
3466 <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>
3469 <dd>The loading options that were specified (see {<b>link</b> <b>load</b>} for details)</dd>
3487 <td class="msource">
3488 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3492 <tr class="method-row expandable config-row-alt0">
3493 <td class="micon"><a class="exi" href="#expand"> </a></td>
3496 <a id="Roo.data.Store-event-*loadexception"></a>
3498 <div class="fixedFont">
3499 <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>)
3505 <div class="short">Fires if an exception occurs in the Proxy during loading.
3511 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
3517 <dl class="detailList">
3518 <dt class="heading">Parameters:</dt>
3521 <span class="fixedFont">Proxy</span> <b></b>
3527 <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>
3530 <dd>from JsonData.reader() - success, totalRecords, records</dd>
3533 <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>
3539 <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>
3542 <dd>from your request (normally this contains the Exception)</dd>
3560 <td class="msource">
3561 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3565 <tr class="method-row expandable config-row-alt1">
3566 <td class="micon"><a class="exi" href="#expand"> </a></td>
3569 <a id="Roo.data.Store-event-*metachange"></a>
3571 <div class="fixedFont">
3572 <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>)
3578 <div class="short">Fires when this store's reader provides new metadata (fields).
3584 Fires when this store's reader provides new metadata (fields). This is currently only support for JsonReaders.
3590 <dl class="detailList">
3591 <dt class="heading">Parameters:</dt>
3594 <span class="fixedFont">Store</span> <b>this</b>
3600 <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>
3603 <dd>The JSON metadata</dd>
3621 <td class="msource">
3622 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3626 <tr class="method-row expandable config-row-alt0">
3627 <td class="micon"><a class="exi" href="#expand"> </a></td>
3630 <a id="Roo.data.Store-event-*remove"></a>
3632 <div class="fixedFont">
3633 <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>)
3639 <div class="short">Fires when a Record has been removed from the Store
3645 Fires when a Record has been removed from the Store
3651 <dl class="detailList">
3652 <dt class="heading">Parameters:</dt>
3655 <span class="fixedFont">Store</span> <b>this</b>
3661 <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>
3664 <dd>The Record that was removed</dd>
3667 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3670 <dd>The index at which the record was removed</dd>
3688 <td class="msource">
3689 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3693 <tr class="method-row expandable config-row-alt1">
3694 <td class="micon"><a class="exi" href="#expand"> </a></td>
3697 <a id="Roo.data.Store-event-*update"></a>
3699 <div class="fixedFont">
3700 <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>)
3706 <div class="short">Fires when a Record has been updated
3712 Fires when a Record has been updated
3718 <dl class="detailList">
3719 <dt class="heading">Parameters:</dt>
3722 <span class="fixedFont">Store</span> <b>this</b>
3728 <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>
3731 <dd>The Record that was updated</dd>
3734 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>operation</b>
3737 <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>
3755 <td class="msource">
3756 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3767 <!-- ============================== footer ================================= -->
3768 <div class="fineprint" style="clear:both">
3770 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Mon Feb 10 2014 10:32:11 GMT+0800 (HKT)
3772 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>