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.JsonStore</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.JsonStore-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.data.JsonStore-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.data.JsonStore-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.data.JsonStore-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.JsonStore
53 <!-- ============================== class title / details ============================ -->
56 <h1 class="classTitle">
58 Class Roo.data.JsonStore
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_JsonStore.js.html">Roo/data/JsonStore.js</a>.
70 <tr><td class="label">Class:</td><td class="hd-info">JsonStore</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">
90 <!-- ============================== Class comment block... ========================== -->
92 <div class="comments">
93 <b>Class Comments / Notes</B> =>
94 <u onclick="parent.CommentDialog.showCommentId = 'Roo.data.JsonStore';">[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.JsonStore.html"></iframe>
102 <!-- ============================== config options ========================== -->
107 <div class="hr"></div>
108 <a id="Roo.data.JsonStore-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">
159 <td class="micon"><a class="exi" href="#expand"> </a></td>
162 <a id="Roo.data.Store-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">Inline data to be loaded when the store is initialized.</div>
174 <div class="long">Inline data to be loaded when the store is initialized.</div>
182 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
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.JsonStore-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">
219 <td class="micon"><a class="exi" href="#expand"> </a></td>
222 <a id="Roo.data.Store-cfg-isLocal" name=".isLocal"></a>
223 <div class="fixedFont">
224 <b class="itemname">isLocal</b> : boolean
230 <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>
234 <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>
242 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
248 <tr class="config-row expandable config-row-alt0">
249 <td class="micon"><a class="exi" href="#expand"> </a></td>
252 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
253 <div class="fixedFont">
254 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
260 <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>
264 <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>
272 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</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.data.Store-cfg-multiSort" name=".multiSort"></a>
283 <div class="fixedFont">
284 <b class="itemname">multiSort</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
290 <div class="short">enable multi column sorting (sort is based on the order of columns, remote only at present)</div>
294 <div class="long">enable multi column sorting (sort is based on the order of columns, remote only at present)</div>
302 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</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-proxy" name=".proxy"></a>
313 <div class="fixedFont">
314 <b class="itemname">proxy</b> : <a href="./Roo.data.DataProxy.html#constructor" roo:cls="Roo.data.DataProxy.html#constructor">Roo.data.DataProxy</a>
320 <div class="short">The Proxy object which provides access to a data object.</div>
324 <div class="long">The Proxy object which provides access to a data object.</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-pruneModifiedRecords" name=".pruneModifiedRecords"></a>
343 <div class="fixedFont">
344 <b class="itemname">pruneModifiedRecords</b> : boolean
350 <div class="short">True to clear all modified record information each time the store is<br/>loaded or when a record is removed.</div>
354 <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>
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-reader" name=".reader"></a>
373 <div class="fixedFont">
374 <b class="itemname">reader</b> : Roo.data.Reader
380 <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>
384 <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>
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-remoteSort" name=".remoteSort"></a>
403 <div class="fixedFont">
404 <b class="itemname">remoteSort</b> : boolean
410 <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>
414 <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>
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-sortInfo" name=".sortInfo"></a>
433 <div class="fixedFont">
434 <b class="itemname">sortInfo</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
440 <div class="short">A config object in the format: {field: "fieldName", direction: "ASC|DESC"}</div>
444 <div class="long">A config object in the format: {field: "fieldName", direction: "ASC|DESC"}</div>
452 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
468 <!-- ============================== public properties ==================== -->
472 <a id="Roo.data.JsonStore-props"></a>
478 <table cellspacing="0" class="member-table">
479 <caption class="Empty">Public Properties - Has None</caption>
485 <!-- ============================== methods summary / details ======================== -->
488 <a id="Roo.data.JsonStore-methods"></a>
489 <!-- constructor?? -->
496 <!-- then dynamics first -->
503 <table cellspacing="0" class="member-table">
504 <caption>Public Methods</caption>
506 <th class="sig-header" colspan="2">Method</th>
507 <th class="msource-header">Defined By</th>
517 <tr class="method-row config-row-alt0 expandable notInherited">
518 <td class="micon"><a class="exi" href="#expand"> </a></td>
522 <a id="Roo.data-method-JsonStore" name=".JsonStore"></a>
523 <div class="fixedFont">
524 <span class="attributes">new <B>Roo.data.</B></span><b class="itemname">JsonStore</b>
526 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
534 <div class="short">Create a new Roo.data.JsonStore</div>
541 Create a new Roo.data.JsonStore
544 <dl class="detailList">
545 <dt class="heading">Parameters:</dt>
548 <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>
575 <tr class="method-row config-row-alt1 expandable">
576 <td class="micon"><a class="exi" href="#expand"> </a></td>
580 <a id="Roo.data.Store-method-add" name=".add"></a>
581 <div class="fixedFont">
582 <span class="attributes"></span><b class="itemname">add</b>
584 (<a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>)
591 <div class="short">Add Records to the Store and fires the add event.</div>
597 Add Records to the Store and fires the add event.
604 <dl class="detailList">
605 <dt class="heading">Parameters:</dt>
608 <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>
611 <dd>An Array of Roo.data.Record objects to add to the cache.</dd>
631 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
637 <tr class="method-row config-row-alt0 expandable">
638 <td class="micon"><a class="exi" href="#expand"> </a></td>
642 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
643 <div class="fixedFont">
644 <span class="attributes"></span><b class="itemname">addEvents</b>
646 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
653 <div class="short">Used to define events on this Observable</div>
659 Used to define events on this Observable
666 <dl class="detailList">
667 <dt class="heading">Parameters:</dt>
670 <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>
673 <dd>The object with the events defined</dd>
693 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
699 <tr class="method-row config-row-alt1 expandable">
700 <td class="micon"><a class="exi" href="#expand"> </a></td>
704 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
705 <div class="fixedFont">
706 <span class="attributes"></span><b class="itemname">addListener</b>
708 (<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>)
715 <div class="short">Appends an event handler to this component</div>
721 Appends an event handler to this component
728 <dl class="detailList">
729 <dt class="heading">Parameters:</dt>
732 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
735 <dd>The type of event to listen for</dd>
738 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
741 <dd>The method the event invokes</dd>
744 <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>
747 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
750 <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>
753 <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>
773 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
779 <tr class="method-row config-row-alt0 expandable">
780 <td class="micon"><a class="exi" href="#expand"> </a></td>
784 <a id="Roo.data.Store-method-clearFilter" name=".clearFilter"></a>
785 <div class="fixedFont">
786 <span class="attributes"></span><b class="itemname">clearFilter</b>
788 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
795 <div class="short">Revert to a view of the Record cache with no filtering applied.</div>
801 Revert to a view of the Record cache with no filtering applied.
808 <dl class="detailList">
809 <dt class="heading">Parameters:</dt>
812 <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>
815 <dd>If true the filter is cleared silently without notifying listeners</dd>
835 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
841 <tr class="method-row config-row-alt1 expandable">
842 <td class="micon"><a class="exi" href="#expand"> </a></td>
846 <a id="Roo.data.Store-method-collect" name=".collect"></a>
847 <div class="fixedFont">
848 <span class="attributes"></span><b class="itemname">collect</b>
850 (<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>)
856 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
865 <div class="short">Collects unique values for a particular dataIndex from this store.</div>
871 Collects unique values for a particular dataIndex from this store.
878 <dl class="detailList">
879 <dt class="heading">Parameters:</dt>
882 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>dataIndex</b>
885 <dd>The property to collect</dd>
888 <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>
891 <dd>(optional) Pass true to allow null, undefined or empty string values</dd>
894 <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>
897 <dd>(optional) Pass true to collect from all records, even ones which are filtered</dd>
905 <dl class="detailList">
906 <dt class="heading">Returns:</dt>
908 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of the unique values</dd>
924 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
930 <tr class="method-row config-row-alt0 expandable">
931 <td class="micon"><a class="exi" href="#expand"> </a></td>
935 <a id="Roo.data.Store-method-commitChanges" name=".commitChanges"></a>
936 <div class="fixedFont">
937 <span class="attributes"></span><b class="itemname">commitChanges</b>
946 <div class="short">Commit all Records with outstanding changes.</div>
952 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.
975 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
981 <tr class="method-row config-row-alt1 expandable">
982 <td class="micon"><a class="exi" href="#expand"> </a></td>
986 <a id="Roo.data.Store-method-each" name=".each"></a>
987 <div class="fixedFont">
988 <span class="attributes"></span><b class="itemname">each</b>
990 (<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>)
997 <div class="short">Calls the specified function for each of the Records in the cache.</div>
1003 Calls the specified function for each of the Records in the cache.
1010 <dl class="detailList">
1011 <dt class="heading">Parameters:</dt>
1014 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
1017 <dd>The function to call. The Record is passed as the first parameter.<br/>Returning <em>false</em> aborts and exits the iteration.</dd>
1020 <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>
1023 <dd>(optional) The scope in which to call the function (defaults to the Record).</dd>
1041 <td class="msource">
1043 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1049 <tr class="method-row config-row-alt0 expandable">
1050 <td class="micon"><a class="exi" href="#expand"> </a></td>
1054 <a id="Roo.data.Store-method-filter" name=".filter"></a>
1055 <div class="fixedFont">
1056 <span class="attributes"></span><b class="itemname">filter</b>
1058 (<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>)
1065 <div class="short">Filter the records by a specified property.</div>
1071 Filter the records by a specified property.
1078 <dl class="detailList">
1079 <dt class="heading">Parameters:</dt>
1082 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>field</b>
1085 <dd>A field on your records</dd>
1088 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
1091 <dd>Either a string that the field<br/>should start with or a RegExp to test against the field</dd>
1094 <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>
1097 <dd>True to match any part not just the beginning</dd>
1115 <td class="msource">
1117 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1123 <tr class="method-row config-row-alt1 expandable">
1124 <td class="micon"><a class="exi" href="#expand"> </a></td>
1128 <a id="Roo.data.Store-method-filterBy" name=".filterBy"></a>
1129 <div class="fixedFont">
1130 <span class="attributes"></span><b class="itemname">filterBy</b>
1132 (<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>)
1139 <div class="short">Filter by a function.</div>
1145 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.
1152 <dl class="detailList">
1153 <dt class="heading">Parameters:</dt>
1156 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
1159 <dd>The function to be called, it will receive 2 args (record, id)</dd>
1162 <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>
1165 <dd>(optional) The scope of the function (defaults to this)</dd>
1183 <td class="msource">
1185 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1191 <tr class="method-row config-row-alt0 expandable">
1192 <td class="micon"><a class="exi" href="#expand"> </a></td>
1196 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
1197 <div class="fixedFont">
1198 <span class="attributes"></span><b class="itemname">fireEvent</b>
1200 (<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>)
1206 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1215 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
1221 Fires the specified event with the passed parameters (minus the event name).
1228 <dl class="detailList">
1229 <dt class="heading">Parameters:</dt>
1232 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1238 <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>
1241 <dd>Variable number of parameters are passed to handlers</dd>
1249 <dl class="detailList">
1250 <dt class="heading">Returns:</dt>
1252 <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>
1266 <td class="msource">
1268 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1274 <tr class="method-row config-row-alt1 expandable">
1275 <td class="micon"><a class="exi" href="#expand"> </a></td>
1279 <a id="Roo.data.Store-method-getAt" name=".getAt"></a>
1280 <div class="fixedFont">
1281 <span class="attributes"></span><b class="itemname">getAt</b>
1283 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
1289 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>
1298 <div class="short">Get the Record at the specified index.</div>
1304 Get the Record at the specified index.
1311 <dl class="detailList">
1312 <dt class="heading">Parameters:</dt>
1315 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1318 <dd>The index of the Record to find.</dd>
1326 <dl class="detailList">
1327 <dt class="heading">Returns:</dt>
1329 <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>
1343 <td class="msource">
1345 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1351 <tr class="method-row config-row-alt0 expandable">
1352 <td class="micon"><a class="exi" href="#expand"> </a></td>
1356 <a id="Roo.data.Store-method-getById" name=".getById"></a>
1357 <div class="fixedFont">
1358 <span class="attributes"></span><b class="itemname">getById</b>
1360 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
1366 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>
1375 <div class="short">Get the Record with the specified id.</div>
1381 Get the Record with the specified id.
1388 <dl class="detailList">
1389 <dt class="heading">Parameters:</dt>
1392 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
1395 <dd>The id of the Record to find.</dd>
1403 <dl class="detailList">
1404 <dt class="heading">Returns:</dt>
1406 <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>
1420 <td class="msource">
1422 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1428 <tr class="method-row config-row-alt1 expandable">
1429 <td class="micon"><a class="exi" href="#expand"> </a></td>
1433 <a id="Roo.data.Store-method-getCount" name=".getCount"></a>
1434 <div class="fixedFont">
1435 <span class="attributes"></span><b class="itemname">getCount</b>
1444 <div class="short">Gets the number of cached records.</div>
1450 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>
1471 <td class="msource">
1473 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1479 <tr class="method-row config-row-alt0 expandable">
1480 <td class="micon"><a class="exi" href="#expand"> </a></td>
1484 <a id="Roo.data.Store-method-getModifiedRecords" name=".getModifiedRecords"></a>
1485 <div class="fixedFont">
1486 <span class="attributes"></span><b class="itemname">getModifiedRecords</b>
1494 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]
1503 <div class="short">Gets all records modified since the last commit.</div>
1509 Gets all records modified since the last commit. Modified records are persisted across load operations<br/>(e.g., during paging).
1520 <dl class="detailList">
1521 <dt class="heading">Returns:</dt>
1523 <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>
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-alt1 expandable">
1546 <td class="micon"><a class="exi" href="#expand"> </a></td>
1550 <a id="Roo.data.Store-method-getRange" name=".getRange"></a>
1551 <div class="fixedFont">
1552 <span class="attributes"></span><b class="itemname">getRange</b>
1554 (<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>)
1560 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]
1569 <div class="short">Returns a range of Records between specified indices.</div>
1575 Returns a range of Records between specified indices.
1582 <dl class="detailList">
1583 <dt class="heading">Parameters:</dt>
1586 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1589 <dd>(optional) The starting index (defaults to 0)</dd>
1592 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1595 <dd>(optional) The ending index (defaults to the last Record in the Store)</dd>
1603 <dl class="detailList">
1604 <dt class="heading">Returns:</dt>
1606 <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>
1620 <td class="msource">
1622 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1628 <tr class="method-row config-row-alt0 expandable">
1629 <td class="micon"><a class="exi" href="#expand"> </a></td>
1633 <a id="Roo.data.Store-method-getSortState" name=".getSortState"></a>
1634 <div class="fixedFont">
1635 <span class="attributes"></span><b class="itemname">getSortState</b>
1644 <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>
1650 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>
1671 <td class="msource">
1673 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1679 <tr class="method-row config-row-alt1 expandable">
1680 <td class="micon"><a class="exi" href="#expand"> </a></td>
1684 <a id="Roo.data.Store-method-getTotalCount" name=".getTotalCount"></a>
1685 <div class="fixedFont">
1686 <span class="attributes"></span><b class="itemname">getTotalCount</b>
1695 <div class="short">Gets the total number of records in the dataset as returned by the server.</div>
1701 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>
1722 <td class="msource">
1724 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1730 <tr class="method-row config-row-alt0 expandable">
1731 <td class="micon"><a class="exi" href="#expand"> </a></td>
1735 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1736 <div class="fixedFont">
1737 <span class="attributes"></span><b class="itemname">hasListener</b>
1739 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1745 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1754 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1760 Checks to see if this object has any listeners for a specified event
1767 <dl class="detailList">
1768 <dt class="heading">Parameters:</dt>
1771 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1774 <dd>The name of the event to check for</dd>
1782 <dl class="detailList">
1783 <dt class="heading">Returns:</dt>
1785 <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>
1799 <td class="msource">
1801 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1807 <tr class="method-row config-row-alt1 expandable">
1808 <td class="micon"><a class="exi" href="#expand"> </a></td>
1812 <a id="Roo.data.Store-method-indexOf" name=".indexOf"></a>
1813 <div class="fixedFont">
1814 <span class="attributes"></span><b class="itemname">indexOf</b>
1816 (<a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a> <B><i>record</i></B>)
1822 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1831 <div class="short">Get the index within the cache of the passed Record.</div>
1837 Get the index within the cache of the passed Record.
1844 <dl class="detailList">
1845 <dt class="heading">Parameters:</dt>
1848 <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>
1851 <dd>The Roo.data.Record object to to find.</dd>
1859 <dl class="detailList">
1860 <dt class="heading">Returns:</dt>
1862 <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>
1876 <td class="msource">
1878 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1884 <tr class="method-row config-row-alt0 expandable">
1885 <td class="micon"><a class="exi" href="#expand"> </a></td>
1889 <a id="Roo.data.Store-method-indexOfId" name=".indexOfId"></a>
1890 <div class="fixedFont">
1891 <span class="attributes"></span><b class="itemname">indexOfId</b>
1893 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
1899 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1908 <div class="short">Get the index within the cache of the Record with the passed id.</div>
1914 Get the index within the cache of the Record with the passed id.
1921 <dl class="detailList">
1922 <dt class="heading">Parameters:</dt>
1925 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
1928 <dd>The id of the Record to find.</dd>
1936 <dl class="detailList">
1937 <dt class="heading">Returns:</dt>
1939 <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>
1953 <td class="msource">
1955 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1961 <tr class="method-row config-row-alt1 expandable">
1962 <td class="micon"><a class="exi" href="#expand"> </a></td>
1966 <a id="Roo.data.Store-method-insert" name=".insert"></a>
1967 <div class="fixedFont">
1968 <span class="attributes"></span><b class="itemname">insert</b>
1970 (<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>)
1977 <div class="short">Inserts Records to the Store at the given index and fires the add event.</div>
1983 Inserts Records to the Store at the given index and fires the add event.
1990 <dl class="detailList">
1991 <dt class="heading">Parameters:</dt>
1994 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1997 <dd>The start index at which to insert the passed Records.</dd>
2000 <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>
2003 <dd>An Array of Roo.data.Record objects to add to the cache.</dd>
2021 <td class="msource">
2023 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2029 <tr class="method-row config-row-alt0 expandable">
2030 <td class="micon"><a class="exi" href="#expand"> </a></td>
2034 <a id="Roo.data.Store-method-load" name=".load"></a>
2035 <div class="fixedFont">
2036 <span class="attributes"></span><b class="itemname">load</b>
2038 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
2045 <div class="short">Loads the Record cache from the configured Proxy using the configured Reader.</div>
2051 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>
2058 <dl class="detailList">
2059 <dt class="heading">Parameters:</dt>
2062 <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>
2065 <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>
2083 <td class="msource">
2085 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2091 <tr class="method-row config-row-alt1 expandable">
2092 <td class="micon"><a class="exi" href="#expand"> </a></td>
2096 <a id="Roo.data.Store-method-loadData" name=".loadData"></a>
2097 <div class="fixedFont">
2098 <span class="attributes"></span><b class="itemname">loadData</b>
2100 (<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>)
2107 <div class="short">Loads data from a passed data block.</div>
2113 Loads data from a passed data block. A Reader which understands the format of the data<br/>must have been configured in the constructor.
2120 <dl class="detailList">
2121 <dt class="heading">Parameters:</dt>
2124 <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>
2127 <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>
2130 <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>
2133 <dd>(Optional) True to append the new Records rather than replace the existing cache.</dd>
2151 <td class="msource">
2153 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2159 <tr class="method-row config-row-alt0 expandable">
2160 <td class="micon"><a class="exi" href="#expand"> </a></td>
2164 <a id="Roo.util.Observable-method-on" name=".on"></a>
2165 <div class="fixedFont">
2166 <span class="attributes"></span><b class="itemname">on</b>
2168 (<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>)
2175 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
2181 Appends an event handler to this element (shorthand for addListener)
2188 <dl class="detailList">
2189 <dt class="heading">Parameters:</dt>
2192 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2195 <dd>The type of event to listen for</dd>
2198 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2201 <dd>The method the event invokes</dd>
2204 <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>
2207 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
2210 <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>
2231 <td class="msource">
2233 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2239 <tr class="method-row config-row-alt1 expandable">
2240 <td class="micon"><a class="exi" href="#expand"> </a></td>
2244 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
2245 <div class="fixedFont">
2246 <span class="attributes"></span><b class="itemname">purgeListeners</b>
2255 <div class="short">Removes all listeners for this object</div>
2261 Removes all listeners for this object
2282 <td class="msource">
2284 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2290 <tr class="method-row config-row-alt0 expandable">
2291 <td class="micon"><a class="exi" href="#expand"> </a></td>
2295 <a id="Roo.data.Store-method-query" name=".query"></a>
2296 <div class="fixedFont">
2297 <span class="attributes"></span><b class="itemname">query</b>
2299 (<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>)
2314 <div class="short">Query the records by a specified property.</div>
2320 Query the records by a specified property.
2327 <dl class="detailList">
2328 <dt class="heading">Parameters:</dt>
2331 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>field</b>
2334 <dd>A field on your records</dd>
2337 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
2340 <dd>Either a string that the field<br/>should start with or a RegExp to test against the field</dd>
2343 <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>
2346 <dd>True to match any part not just the beginning</dd>
2354 <dl class="detailList">
2355 <dt class="heading">Returns:</dt>
2357 <dd><span class="fixedFont">MixedCollection</span> Returns an Roo.util.MixedCollection of the matched records</dd>
2371 <td class="msource">
2373 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2379 <tr class="method-row config-row-alt1 expandable">
2380 <td class="micon"><a class="exi" href="#expand"> </a></td>
2384 <a id="Roo.data.Store-method-queryBy" name=".queryBy"></a>
2385 <div class="fixedFont">
2386 <span class="attributes"></span><b class="itemname">queryBy</b>
2388 (<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>)
2403 <div class="short">Query by a function.</div>
2409 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.
2416 <dl class="detailList">
2417 <dt class="heading">Parameters:</dt>
2420 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
2423 <dd>The function to be called, it will receive 2 args (record, id)</dd>
2426 <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>
2429 <dd>(optional) The scope of the function (defaults to this)</dd>
2437 <dl class="detailList">
2438 <dt class="heading">Returns:</dt>
2440 <dd><span class="fixedFont">MixedCollection</span> Returns an Roo.util.MixedCollection of the matched records</dd>
2454 <td class="msource">
2456 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2462 <tr class="method-row config-row-alt0 expandable">
2463 <td class="micon"><a class="exi" href="#expand"> </a></td>
2467 <a id="Roo.data.Store-method-rejectChanges" name=".rejectChanges"></a>
2468 <div class="fixedFont">
2469 <span class="attributes"></span><b class="itemname">rejectChanges</b>
2478 <div class="short">Cancel outstanding changes on all changed records.</div>
2484 Cancel outstanding changes on all changed records.
2505 <td class="msource">
2507 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2513 <tr class="method-row config-row-alt1 expandable">
2514 <td class="micon"><a class="exi" href="#expand"> </a></td>
2518 <a id="Roo.data.Store-method-reload" name=".reload"></a>
2519 <div class="fixedFont">
2520 <span class="attributes"></span><b class="itemname">reload</b>
2522 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
2529 <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>
2535 Reloads the Record cache from the configured Proxy using the configured Reader and<br/>the options from the last load operation performed.
2542 <dl class="detailList">
2543 <dt class="heading">Parameters:</dt>
2546 <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>
2549 <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>
2567 <td class="msource">
2569 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2575 <tr class="method-row config-row-alt0 expandable">
2576 <td class="micon"><a class="exi" href="#expand"> </a></td>
2580 <a id="Roo.data.Store-method-remove" name=".remove"></a>
2581 <div class="fixedFont">
2582 <span class="attributes"></span><b class="itemname">remove</b>
2584 (Ext.data.Record <B><i>record</i></B>)
2591 <div class="short">Remove a Record from the Store and fires the remove event.</div>
2597 Remove a Record from the Store and fires the remove event.
2604 <dl class="detailList">
2605 <dt class="heading">Parameters:</dt>
2608 <span class="fixedFont">Ext.data.Record</span> <b>record</b>
2611 <dd>The Roo.data.Record object to remove from the cache.</dd>
2629 <td class="msource">
2631 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2637 <tr class="method-row config-row-alt1 expandable">
2638 <td class="micon"><a class="exi" href="#expand"> </a></td>
2642 <a id="Roo.data.Store-method-removeAll" name=".removeAll"></a>
2643 <div class="fixedFont">
2644 <span class="attributes"></span><b class="itemname">removeAll</b>
2653 <div class="short">Remove all Records from the Store and fires the clear event.</div>
2659 Remove all Records from the Store and fires the clear event.
2680 <td class="msource">
2682 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2688 <tr class="method-row config-row-alt0 expandable">
2689 <td class="micon"><a class="exi" href="#expand"> </a></td>
2693 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2694 <div class="fixedFont">
2695 <span class="attributes"></span><b class="itemname">removeListener</b>
2697 (<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>)
2704 <div class="short">Removes a listener</div>
2717 <dl class="detailList">
2718 <dt class="heading">Parameters:</dt>
2721 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2724 <dd>The type of event to listen for</dd>
2727 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2730 <dd>The handler to remove</dd>
2733 <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>
2736 <dd>(optional) The scope (this object) for the handler</dd>
2754 <td class="msource">
2756 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2762 <tr class="method-row config-row-alt1 expandable">
2763 <td class="micon"><a class="exi" href="#expand"> </a></td>
2767 <a id="Roo.data.Store-method-setDefaultSort" name=".setDefaultSort"></a>
2768 <div class="fixedFont">
2769 <span class="attributes"></span><b class="itemname">setDefaultSort</b>
2771 (<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>)
2778 <div class="short">Sets the default sort column and order to be used by the next load operation.</div>
2784 Sets the default sort column and order to be used by the next load operation.
2791 <dl class="detailList">
2792 <dt class="heading">Parameters:</dt>
2795 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>fieldName</b>
2798 <dd>The name of the field to sort by.</dd>
2801 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>dir</b>
2804 <dd>(optional) The sort order, "ASC" or "DESC" (defaults to "ASC")</dd>
2822 <td class="msource">
2824 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2830 <tr class="method-row config-row-alt0 expandable">
2831 <td class="micon"><a class="exi" href="#expand"> </a></td>
2835 <a id="Roo.data.Store-method-sort" name=".sort"></a>
2836 <div class="fixedFont">
2837 <span class="attributes"></span><b class="itemname">sort</b>
2839 (<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>)
2846 <div class="short">Sort the Records.</div>
2852 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.
2859 <dl class="detailList">
2860 <dt class="heading">Parameters:</dt>
2863 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>fieldName</b>
2866 <dd>The name of the field to sort by.</dd>
2869 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>dir</b>
2872 <dd>(optional) The sort order, "ASC" or "DESC" (defaults to "ASC")</dd>
2890 <td class="msource">
2892 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2898 <tr class="method-row config-row-alt1 expandable">
2899 <td class="micon"><a class="exi" href="#expand"> </a></td>
2903 <a id="Roo.data.Store-method-sum" name=".sum"></a>
2904 <div class="fixedFont">
2905 <span class="attributes"></span><b class="itemname">sum</b>
2907 (<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>)
2913 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
2922 <div class="short">Sums the value of <i>property</i> for each record between start and end and returns the result.</div>
2928 Sums the value of <i>property</i> for each record between start and end and returns the result.
2935 <dl class="detailList">
2936 <dt class="heading">Parameters:</dt>
2939 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
2942 <dd>A field on your records</dd>
2945 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>start</b>
2948 <dd>The record index to start at (defaults to 0)</dd>
2951 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>end</b>
2954 <dd>The last record index to include (defaults to length - 1)</dd>
2962 <dl class="detailList">
2963 <dt class="heading">Returns:</dt>
2965 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> The sum</dd>
2979 <td class="msource">
2981 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2987 <tr class="method-row config-row-alt0 expandable">
2988 <td class="micon"><a class="exi" href="#expand"> </a></td>
2992 <a id="Roo.util.Observable-method-un" name=".un"></a>
2993 <div class="fixedFont">
2994 <span class="attributes"></span><b class="itemname">un</b>
2996 (<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>)
3003 <div class="short">Removes a listener (shorthand for removeListener)</div>
3009 Removes a listener (shorthand for removeListener)
3016 <dl class="detailList">
3017 <dt class="heading">Parameters:</dt>
3020 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
3023 <dd>The type of event to listen for</dd>
3026 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
3029 <dd>The handler to remove</dd>
3032 <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>
3035 <dd>(optional) The scope (this object) for the handler</dd>
3053 <td class="msource">
3055 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
3064 <!-- ============================== events summary / details ======================== -->
3067 <a id="Roo.data.JsonStore-events"></a>
3076 <table cellspacing="0" class="member-table">
3077 <caption>Events</caption>
3080 <th class="sig-header" colspan="2">Event</th>
3081 <th class="msource-header">Defined By</th>
3090 <tr class="method-row expandable config-row-alt0">
3091 <td class="micon"><a class="exi" href="#expand"> </a></td>
3094 <a id="Roo.data.Store-event-*add"></a>
3096 <div class="fixedFont">
3097 <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>)
3103 <div class="short">Fires when Records have been added to the Store
3109 Fires when Records have been added to the Store
3115 <dl class="detailList">
3116 <dt class="heading">Parameters:</dt>
3119 <span class="fixedFont">Store</span> <b>this</b>
3125 <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>
3128 <dd>The array of Records added</dd>
3131 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3134 <dd>The index at which the record(s) were added</dd>
3152 <td class="msource">
3153 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3157 <tr class="method-row expandable config-row-alt1">
3158 <td class="micon"><a class="exi" href="#expand"> </a></td>
3161 <a id="Roo.data.Store-event-*beforeload"></a>
3163 <div class="fixedFont">
3164 <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>)
3170 <div class="short">Fires before a request is made for a new data object.
3176 Fires before a request is made for a new data object. If the beforeload handler returns false<br/>the load action will be canceled.
3182 <dl class="detailList">
3183 <dt class="heading">Parameters:</dt>
3186 <span class="fixedFont">Store</span> <b>this</b>
3192 <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>
3195 <dd>The loading options that were specified (see {<b>link</b> <b>load</b>} for details)</dd>
3213 <td class="msource">
3214 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3218 <tr class="method-row expandable config-row-alt0">
3219 <td class="micon"><a class="exi" href="#expand"> </a></td>
3222 <a id="Roo.data.Store-event-*beforeloadadd"></a>
3224 <div class="fixedFont">
3225 <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>)
3231 <div class="short">Fires after a new set of Records has been loaded.
3237 Fires after a new set of Records has been loaded.
3243 <dl class="detailList">
3244 <dt class="heading">Parameters:</dt>
3247 <span class="fixedFont">Store</span> <b>this</b>
3253 <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>
3256 <dd>The Records that were loaded</dd>
3259 <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>
3262 <dd>The loading options that were specified (see {<b>link</b> <b>load</b>} for details)</dd>
3280 <td class="msource">
3281 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3285 <tr class="method-row expandable config-row-alt1">
3286 <td class="micon"><a class="exi" href="#expand"> </a></td>
3289 <a id="Roo.data.Store-event-*clear"></a>
3291 <div class="fixedFont">
3292 <b class="itemname">clear</b> (Store <B><i>this</i></B>)
3298 <div class="short">Fires when the data cache has been cleared.
3304 Fires when the data cache has been cleared.
3310 <dl class="detailList">
3311 <dt class="heading">Parameters:</dt>
3314 <span class="fixedFont">Store</span> <b>this</b>
3335 <td class="msource">
3336 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3340 <tr class="method-row expandable config-row-alt0">
3341 <td class="micon"><a class="exi" href="#expand"> </a></td>
3344 <a id="Roo.data.Store-event-*datachanged"></a>
3346 <div class="fixedFont">
3347 <b class="itemname">datachanged</b> (Store <B><i>this</i></B>)
3353 <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.
3359 Fires when the data cache has changed, and a widget which is using this Store<br/>as a Record cache should refresh its view.
3365 <dl class="detailList">
3366 <dt class="heading">Parameters:</dt>
3369 <span class="fixedFont">Store</span> <b>this</b>
3390 <td class="msource">
3391 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3395 <tr class="method-row expandable config-row-alt1">
3396 <td class="micon"><a class="exi" href="#expand"> </a></td>
3399 <a id="Roo.data.Store-event-*load"></a>
3401 <div class="fixedFont">
3402 <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>)
3408 <div class="short">Fires after a new set of Records has been loaded, before they are added to the store.
3414 Fires after a new set of Records has been loaded, before they are added to the store.
3420 <dl class="detailList">
3421 <dt class="heading">Parameters:</dt>
3424 <span class="fixedFont">Store</span> <b>this</b>
3430 <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>
3433 <dd>The Records that were loaded</dd>
3436 <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>
3439 <dd>The loading options that were specified (see {<b>link</b> <b>load</b>} for details)</dd>
3457 <td class="msource">
3458 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3462 <tr class="method-row expandable config-row-alt0">
3463 <td class="micon"><a class="exi" href="#expand"> </a></td>
3466 <a id="Roo.data.Store-event-*loadexception"></a>
3468 <div class="fixedFont">
3469 <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>)
3475 <div class="short">Fires if an exception occurs in the Proxy during loading.
3481 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
3487 <dl class="detailList">
3488 <dt class="heading">Parameters:</dt>
3491 <span class="fixedFont">Proxy</span> <b></b>
3497 <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>
3500 <dd>from JsonData.reader() - success, totalRecords, records</dd>
3503 <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>
3509 <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>
3512 <dd>from your request (normally this contains the Exception)</dd>
3530 <td class="msource">
3531 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3535 <tr class="method-row expandable config-row-alt1">
3536 <td class="micon"><a class="exi" href="#expand"> </a></td>
3539 <a id="Roo.data.Store-event-*metachange"></a>
3541 <div class="fixedFont">
3542 <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>)
3548 <div class="short">Fires when this store's reader provides new metadata (fields).
3554 Fires when this store's reader provides new metadata (fields). This is currently only support for JsonReaders.
3560 <dl class="detailList">
3561 <dt class="heading">Parameters:</dt>
3564 <span class="fixedFont">Store</span> <b>this</b>
3570 <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>
3573 <dd>The JSON metadata</dd>
3591 <td class="msource">
3592 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3596 <tr class="method-row expandable config-row-alt0">
3597 <td class="micon"><a class="exi" href="#expand"> </a></td>
3600 <a id="Roo.data.Store-event-*remove"></a>
3602 <div class="fixedFont">
3603 <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>)
3609 <div class="short">Fires when a Record has been removed from the Store
3615 Fires when a Record has been removed from the Store
3621 <dl class="detailList">
3622 <dt class="heading">Parameters:</dt>
3625 <span class="fixedFont">Store</span> <b>this</b>
3631 <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>
3634 <dd>The Record that was removed</dd>
3637 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3640 <dd>The index at which the record was removed</dd>
3658 <td class="msource">
3659 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3663 <tr class="method-row expandable config-row-alt1">
3664 <td class="micon"><a class="exi" href="#expand"> </a></td>
3667 <a id="Roo.data.Store-event-*update"></a>
3669 <div class="fixedFont">
3670 <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>)
3676 <div class="short">Fires when a Record has been updated
3682 Fires when a Record has been updated
3688 <dl class="detailList">
3689 <dt class="heading">Parameters:</dt>
3692 <span class="fixedFont">Store</span> <b>this</b>
3698 <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>
3701 <dd>The Record that was updated</dd>
3704 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>operation</b>
3707 <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>
3725 <td class="msource">
3726 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3737 <!-- ============================== footer ================================= -->
3738 <div class="fineprint" style="clear:both">
3740 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Thu Apr 24 2014 16:32:57 GMT+0800 (HKT)
3742 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>