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-proxy" name=".proxy"></a>
283 <div class="fixedFont">
284 <b class="itemname">proxy</b> : <a href="./Roo.data.DataProxy.html#constructor" roo:cls="Roo.data.DataProxy.html#constructor">Roo.data.DataProxy</a>
290 <div class="short">The Proxy object which provides access to a data object.</div>
294 <div class="long">The Proxy object which provides access to a data object.</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-pruneModifiedRecords" name=".pruneModifiedRecords"></a>
313 <div class="fixedFont">
314 <b class="itemname">pruneModifiedRecords</b> : boolean
320 <div class="short">True to clear all modified record information each time the store is<br/>loaded or when a record is removed.</div>
324 <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>
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-reader" name=".reader"></a>
343 <div class="fixedFont">
344 <b class="itemname">reader</b> : Roo.data.Reader
350 <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>
354 <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>
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-remoteSort" name=".remoteSort"></a>
373 <div class="fixedFont">
374 <b class="itemname">remoteSort</b> : boolean
380 <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>
384 <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>
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-sortInfo" name=".sortInfo"></a>
403 <div class="fixedFont">
404 <b class="itemname">sortInfo</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
410 <div class="short">A config object in the format: {field: "fieldName", direction: "ASC|DESC"}</div>
414 <div class="long">A config object in the format: {field: "fieldName", direction: "ASC|DESC"}</div>
422 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
438 <!-- ============================== public properties ==================== -->
442 <a id="Roo.data.JsonStore-props"></a>
448 <table cellspacing="0" class="member-table">
449 <caption class="Empty">Public Properties - Has None</caption>
455 <!-- ============================== methods summary / details ======================== -->
458 <a id="Roo.data.JsonStore-methods"></a>
459 <!-- constructor?? -->
466 <!-- then dynamics first -->
473 <table cellspacing="0" class="member-table">
474 <caption>Public Methods</caption>
476 <th class="sig-header" colspan="2">Method</th>
477 <th class="msource-header">Defined By</th>
487 <tr class="method-row config-row-alt0 expandable notInherited">
488 <td class="micon"><a class="exi" href="#expand"> </a></td>
492 <a id="Roo.data-method-JsonStore" name=".JsonStore"></a>
493 <div class="fixedFont">
494 <span class="attributes">new <B>Roo.data.</B></span><b class="itemname">JsonStore</b>
496 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
504 <div class="short">Create a new Roo.data.JsonStore</div>
511 Create a new Roo.data.JsonStore
514 <dl class="detailList">
515 <dt class="heading">Parameters:</dt>
518 <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>
545 <tr class="method-row config-row-alt1 expandable">
546 <td class="micon"><a class="exi" href="#expand"> </a></td>
550 <a id="Roo.data.Store-method-add" name=".add"></a>
551 <div class="fixedFont">
552 <span class="attributes"></span><b class="itemname">add</b>
554 (<a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>)
561 <div class="short">Add Records to the Store and fires the add event.</div>
567 Add Records to the Store and fires the add event.
574 <dl class="detailList">
575 <dt class="heading">Parameters:</dt>
578 <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>
581 <dd>An Array of Roo.data.Record objects to add to the cache.</dd>
601 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
607 <tr class="method-row config-row-alt0 expandable">
608 <td class="micon"><a class="exi" href="#expand"> </a></td>
612 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
613 <div class="fixedFont">
614 <span class="attributes"></span><b class="itemname">addEvents</b>
616 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
623 <div class="short">Used to define events on this Observable</div>
629 Used to define events on this Observable
636 <dl class="detailList">
637 <dt class="heading">Parameters:</dt>
640 <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>
643 <dd>The object with the events defined</dd>
663 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
669 <tr class="method-row config-row-alt1 expandable">
670 <td class="micon"><a class="exi" href="#expand"> </a></td>
674 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
675 <div class="fixedFont">
676 <span class="attributes"></span><b class="itemname">addListener</b>
678 (<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>)
685 <div class="short">Appends an event handler to this component</div>
691 Appends an event handler to this component
698 <dl class="detailList">
699 <dt class="heading">Parameters:</dt>
702 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
705 <dd>The type of event to listen for</dd>
708 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
711 <dd>The method the event invokes</dd>
714 <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>
717 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
720 <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>
723 <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>
743 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
749 <tr class="method-row config-row-alt0 expandable">
750 <td class="micon"><a class="exi" href="#expand"> </a></td>
754 <a id="Roo.data.Store-method-clearFilter" name=".clearFilter"></a>
755 <div class="fixedFont">
756 <span class="attributes"></span><b class="itemname">clearFilter</b>
758 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
765 <div class="short">Revert to a view of the Record cache with no filtering applied.</div>
771 Revert to a view of the Record cache with no filtering applied.
778 <dl class="detailList">
779 <dt class="heading">Parameters:</dt>
782 <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>
785 <dd>If true the filter is cleared silently without notifying listeners</dd>
805 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
811 <tr class="method-row config-row-alt1 expandable">
812 <td class="micon"><a class="exi" href="#expand"> </a></td>
816 <a id="Roo.data.Store-method-collect" name=".collect"></a>
817 <div class="fixedFont">
818 <span class="attributes"></span><b class="itemname">collect</b>
820 (<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>)
826 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
835 <div class="short">Collects unique values for a particular dataIndex from this store.</div>
841 Collects unique values for a particular dataIndex from this store.
848 <dl class="detailList">
849 <dt class="heading">Parameters:</dt>
852 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>dataIndex</b>
855 <dd>The property to collect</dd>
858 <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>
861 <dd>(optional) Pass true to allow null, undefined or empty string values</dd>
864 <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>
867 <dd>(optional) Pass true to collect from all records, even ones which are filtered</dd>
875 <dl class="detailList">
876 <dt class="heading">Returns:</dt>
878 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of the unique values</dd>
894 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
900 <tr class="method-row config-row-alt0 expandable">
901 <td class="micon"><a class="exi" href="#expand"> </a></td>
905 <a id="Roo.data.Store-method-commitChanges" name=".commitChanges"></a>
906 <div class="fixedFont">
907 <span class="attributes"></span><b class="itemname">commitChanges</b>
916 <div class="short">Commit all Records with outstanding changes.</div>
922 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.
945 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
951 <tr class="method-row config-row-alt1 expandable">
952 <td class="micon"><a class="exi" href="#expand"> </a></td>
956 <a id="Roo.data.Store-method-each" name=".each"></a>
957 <div class="fixedFont">
958 <span class="attributes"></span><b class="itemname">each</b>
960 (<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>)
967 <div class="short">Calls the specified function for each of the Records in the cache.</div>
973 Calls the specified function for each of the Records in the cache.
980 <dl class="detailList">
981 <dt class="heading">Parameters:</dt>
984 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
987 <dd>The function to call. The Record is passed as the first parameter.<br/>Returning <em>false</em> aborts and exits the iteration.</dd>
990 <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>
993 <dd>(optional) The scope in which to call the function (defaults to the Record).</dd>
1011 <td class="msource">
1013 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1019 <tr class="method-row config-row-alt0 expandable">
1020 <td class="micon"><a class="exi" href="#expand"> </a></td>
1024 <a id="Roo.data.Store-method-filter" name=".filter"></a>
1025 <div class="fixedFont">
1026 <span class="attributes"></span><b class="itemname">filter</b>
1028 (<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>)
1035 <div class="short">Filter the records by a specified property.</div>
1041 Filter the records by a specified property.
1048 <dl class="detailList">
1049 <dt class="heading">Parameters:</dt>
1052 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>field</b>
1055 <dd>A field on your records</dd>
1058 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
1061 <dd>Either a string that the field<br/>should start with or a RegExp to test against the field</dd>
1064 <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>
1067 <dd>True to match any part not just the beginning</dd>
1085 <td class="msource">
1087 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1093 <tr class="method-row config-row-alt1 expandable">
1094 <td class="micon"><a class="exi" href="#expand"> </a></td>
1098 <a id="Roo.data.Store-method-filterBy" name=".filterBy"></a>
1099 <div class="fixedFont">
1100 <span class="attributes"></span><b class="itemname">filterBy</b>
1102 (<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>)
1109 <div class="short">Filter by a function.</div>
1115 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.
1122 <dl class="detailList">
1123 <dt class="heading">Parameters:</dt>
1126 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
1129 <dd>The function to be called, it will receive 2 args (record, id)</dd>
1132 <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>
1135 <dd>(optional) The scope of the function (defaults to this)</dd>
1153 <td class="msource">
1155 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1161 <tr class="method-row config-row-alt0 expandable">
1162 <td class="micon"><a class="exi" href="#expand"> </a></td>
1166 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
1167 <div class="fixedFont">
1168 <span class="attributes"></span><b class="itemname">fireEvent</b>
1170 (<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>)
1176 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1185 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
1191 Fires the specified event with the passed parameters (minus the event name).
1198 <dl class="detailList">
1199 <dt class="heading">Parameters:</dt>
1202 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1208 <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>
1211 <dd>Variable number of parameters are passed to handlers</dd>
1219 <dl class="detailList">
1220 <dt class="heading">Returns:</dt>
1222 <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>
1236 <td class="msource">
1238 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1244 <tr class="method-row config-row-alt1 expandable">
1245 <td class="micon"><a class="exi" href="#expand"> </a></td>
1249 <a id="Roo.data.Store-method-getAt" name=".getAt"></a>
1250 <div class="fixedFont">
1251 <span class="attributes"></span><b class="itemname">getAt</b>
1253 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
1259 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>
1268 <div class="short">Get the Record at the specified index.</div>
1274 Get the Record at the specified index.
1281 <dl class="detailList">
1282 <dt class="heading">Parameters:</dt>
1285 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1288 <dd>The index of the Record to find.</dd>
1296 <dl class="detailList">
1297 <dt class="heading">Returns:</dt>
1299 <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>
1313 <td class="msource">
1315 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1321 <tr class="method-row config-row-alt0 expandable">
1322 <td class="micon"><a class="exi" href="#expand"> </a></td>
1326 <a id="Roo.data.Store-method-getById" name=".getById"></a>
1327 <div class="fixedFont">
1328 <span class="attributes"></span><b class="itemname">getById</b>
1330 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
1336 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>
1345 <div class="short">Get the Record with the specified id.</div>
1351 Get the Record with the specified id.
1358 <dl class="detailList">
1359 <dt class="heading">Parameters:</dt>
1362 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
1365 <dd>The id of the Record to find.</dd>
1373 <dl class="detailList">
1374 <dt class="heading">Returns:</dt>
1376 <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>
1390 <td class="msource">
1392 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1398 <tr class="method-row config-row-alt1 expandable">
1399 <td class="micon"><a class="exi" href="#expand"> </a></td>
1403 <a id="Roo.data.Store-method-getCount" name=".getCount"></a>
1404 <div class="fixedFont">
1405 <span class="attributes"></span><b class="itemname">getCount</b>
1414 <div class="short">Gets the number of cached records.</div>
1420 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>
1441 <td class="msource">
1443 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1449 <tr class="method-row config-row-alt0 expandable">
1450 <td class="micon"><a class="exi" href="#expand"> </a></td>
1454 <a id="Roo.data.Store-method-getModifiedRecords" name=".getModifiedRecords"></a>
1455 <div class="fixedFont">
1456 <span class="attributes"></span><b class="itemname">getModifiedRecords</b>
1464 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]
1473 <div class="short">Gets all records modified since the last commit.</div>
1479 Gets all records modified since the last commit. Modified records are persisted across load operations<br/>(e.g., during paging).
1490 <dl class="detailList">
1491 <dt class="heading">Returns:</dt>
1493 <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>
1507 <td class="msource">
1509 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1515 <tr class="method-row config-row-alt1 expandable">
1516 <td class="micon"><a class="exi" href="#expand"> </a></td>
1520 <a id="Roo.data.Store-method-getRange" name=".getRange"></a>
1521 <div class="fixedFont">
1522 <span class="attributes"></span><b class="itemname">getRange</b>
1524 (<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>)
1530 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]
1539 <div class="short">Returns a range of Records between specified indices.</div>
1545 Returns a range of Records between specified indices.
1552 <dl class="detailList">
1553 <dt class="heading">Parameters:</dt>
1556 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1559 <dd>(optional) The starting index (defaults to 0)</dd>
1562 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1565 <dd>(optional) The ending index (defaults to the last Record in the Store)</dd>
1573 <dl class="detailList">
1574 <dt class="heading">Returns:</dt>
1576 <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>
1590 <td class="msource">
1592 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1598 <tr class="method-row config-row-alt0 expandable">
1599 <td class="micon"><a class="exi" href="#expand"> </a></td>
1603 <a id="Roo.data.Store-method-getSortState" name=".getSortState"></a>
1604 <div class="fixedFont">
1605 <span class="attributes"></span><b class="itemname">getSortState</b>
1614 <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>
1620 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>
1641 <td class="msource">
1643 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1649 <tr class="method-row config-row-alt1 expandable">
1650 <td class="micon"><a class="exi" href="#expand"> </a></td>
1654 <a id="Roo.data.Store-method-getTotalCount" name=".getTotalCount"></a>
1655 <div class="fixedFont">
1656 <span class="attributes"></span><b class="itemname">getTotalCount</b>
1665 <div class="short">Gets the total number of records in the dataset as returned by the server.</div>
1671 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>
1692 <td class="msource">
1694 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1700 <tr class="method-row config-row-alt0 expandable">
1701 <td class="micon"><a class="exi" href="#expand"> </a></td>
1705 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1706 <div class="fixedFont">
1707 <span class="attributes"></span><b class="itemname">hasListener</b>
1709 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1715 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1724 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1730 Checks to see if this object has any listeners for a specified event
1737 <dl class="detailList">
1738 <dt class="heading">Parameters:</dt>
1741 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1744 <dd>The name of the event to check for</dd>
1752 <dl class="detailList">
1753 <dt class="heading">Returns:</dt>
1755 <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>
1769 <td class="msource">
1771 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1777 <tr class="method-row config-row-alt1 expandable">
1778 <td class="micon"><a class="exi" href="#expand"> </a></td>
1782 <a id="Roo.data.Store-method-indexOf" name=".indexOf"></a>
1783 <div class="fixedFont">
1784 <span class="attributes"></span><b class="itemname">indexOf</b>
1786 (<a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a> <B><i>record</i></B>)
1792 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1801 <div class="short">Get the index within the cache of the passed Record.</div>
1807 Get the index within the cache of the passed Record.
1814 <dl class="detailList">
1815 <dt class="heading">Parameters:</dt>
1818 <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>
1821 <dd>The Roo.data.Record object to to find.</dd>
1829 <dl class="detailList">
1830 <dt class="heading">Returns:</dt>
1832 <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>
1846 <td class="msource">
1848 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1854 <tr class="method-row config-row-alt0 expandable">
1855 <td class="micon"><a class="exi" href="#expand"> </a></td>
1859 <a id="Roo.data.Store-method-indexOfId" name=".indexOfId"></a>
1860 <div class="fixedFont">
1861 <span class="attributes"></span><b class="itemname">indexOfId</b>
1863 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
1869 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1878 <div class="short">Get the index within the cache of the Record with the passed id.</div>
1884 Get the index within the cache of the Record with the passed id.
1891 <dl class="detailList">
1892 <dt class="heading">Parameters:</dt>
1895 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
1898 <dd>The id of the Record to find.</dd>
1906 <dl class="detailList">
1907 <dt class="heading">Returns:</dt>
1909 <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>
1923 <td class="msource">
1925 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1931 <tr class="method-row config-row-alt1 expandable">
1932 <td class="micon"><a class="exi" href="#expand"> </a></td>
1936 <a id="Roo.data.Store-method-insert" name=".insert"></a>
1937 <div class="fixedFont">
1938 <span class="attributes"></span><b class="itemname">insert</b>
1940 (<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>)
1947 <div class="short">Inserts Records to the Store at the given index and fires the add event.</div>
1953 Inserts Records to the Store at the given index and fires the add event.
1960 <dl class="detailList">
1961 <dt class="heading">Parameters:</dt>
1964 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1967 <dd>The start index at which to insert the passed Records.</dd>
1970 <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>
1973 <dd>An Array of Roo.data.Record objects to add to the cache.</dd>
1991 <td class="msource">
1993 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
1999 <tr class="method-row config-row-alt0 expandable">
2000 <td class="micon"><a class="exi" href="#expand"> </a></td>
2004 <a id="Roo.data.Store-method-load" name=".load"></a>
2005 <div class="fixedFont">
2006 <span class="attributes"></span><b class="itemname">load</b>
2008 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
2015 <div class="short">Loads the Record cache from the configured Proxy using the configured Reader.</div>
2021 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>
2028 <dl class="detailList">
2029 <dt class="heading">Parameters:</dt>
2032 <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>
2035 <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>
2053 <td class="msource">
2055 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2061 <tr class="method-row config-row-alt1 expandable">
2062 <td class="micon"><a class="exi" href="#expand"> </a></td>
2066 <a id="Roo.data.Store-method-loadData" name=".loadData"></a>
2067 <div class="fixedFont">
2068 <span class="attributes"></span><b class="itemname">loadData</b>
2070 (<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>)
2077 <div class="short">Loads data from a passed data block.</div>
2083 Loads data from a passed data block. A Reader which understands the format of the data<br/>must have been configured in the constructor.
2090 <dl class="detailList">
2091 <dt class="heading">Parameters:</dt>
2094 <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>
2097 <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>
2100 <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>
2103 <dd>(Optional) True to append the new Records rather than replace the existing cache.</dd>
2121 <td class="msource">
2123 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2129 <tr class="method-row config-row-alt0 expandable">
2130 <td class="micon"><a class="exi" href="#expand"> </a></td>
2134 <a id="Roo.util.Observable-method-on" name=".on"></a>
2135 <div class="fixedFont">
2136 <span class="attributes"></span><b class="itemname">on</b>
2138 (<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>)
2145 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
2151 Appends an event handler to this element (shorthand for addListener)
2158 <dl class="detailList">
2159 <dt class="heading">Parameters:</dt>
2162 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2165 <dd>The type of event to listen for</dd>
2168 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2171 <dd>The method the event invokes</dd>
2174 <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>
2177 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
2180 <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>
2201 <td class="msource">
2203 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2209 <tr class="method-row config-row-alt1 expandable">
2210 <td class="micon"><a class="exi" href="#expand"> </a></td>
2214 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
2215 <div class="fixedFont">
2216 <span class="attributes"></span><b class="itemname">purgeListeners</b>
2225 <div class="short">Removes all listeners for this object</div>
2231 Removes all listeners for this object
2252 <td class="msource">
2254 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2260 <tr class="method-row config-row-alt0 expandable">
2261 <td class="micon"><a class="exi" href="#expand"> </a></td>
2265 <a id="Roo.data.Store-method-query" name=".query"></a>
2266 <div class="fixedFont">
2267 <span class="attributes"></span><b class="itemname">query</b>
2269 (<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>)
2284 <div class="short">Query the records by a specified property.</div>
2290 Query the records by a specified property.
2297 <dl class="detailList">
2298 <dt class="heading">Parameters:</dt>
2301 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>field</b>
2304 <dd>A field on your records</dd>
2307 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
2310 <dd>Either a string that the field<br/>should start with or a RegExp to test against the field</dd>
2313 <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>
2316 <dd>True to match any part not just the beginning</dd>
2324 <dl class="detailList">
2325 <dt class="heading">Returns:</dt>
2327 <dd><span class="fixedFont">MixedCollection</span> Returns an Roo.util.MixedCollection of the matched records</dd>
2341 <td class="msource">
2343 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2349 <tr class="method-row config-row-alt1 expandable">
2350 <td class="micon"><a class="exi" href="#expand"> </a></td>
2354 <a id="Roo.data.Store-method-queryBy" name=".queryBy"></a>
2355 <div class="fixedFont">
2356 <span class="attributes"></span><b class="itemname">queryBy</b>
2358 (<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>)
2373 <div class="short">Query by a function.</div>
2379 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.
2386 <dl class="detailList">
2387 <dt class="heading">Parameters:</dt>
2390 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
2393 <dd>The function to be called, it will receive 2 args (record, id)</dd>
2396 <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>
2399 <dd>(optional) The scope of the function (defaults to this)</dd>
2407 <dl class="detailList">
2408 <dt class="heading">Returns:</dt>
2410 <dd><span class="fixedFont">MixedCollection</span> Returns an Roo.util.MixedCollection of the matched records</dd>
2424 <td class="msource">
2426 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2432 <tr class="method-row config-row-alt0 expandable">
2433 <td class="micon"><a class="exi" href="#expand"> </a></td>
2437 <a id="Roo.data.Store-method-rejectChanges" name=".rejectChanges"></a>
2438 <div class="fixedFont">
2439 <span class="attributes"></span><b class="itemname">rejectChanges</b>
2448 <div class="short">Cancel outstanding changes on all changed records.</div>
2454 Cancel outstanding changes on all changed records.
2475 <td class="msource">
2477 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2483 <tr class="method-row config-row-alt1 expandable">
2484 <td class="micon"><a class="exi" href="#expand"> </a></td>
2488 <a id="Roo.data.Store-method-reload" name=".reload"></a>
2489 <div class="fixedFont">
2490 <span class="attributes"></span><b class="itemname">reload</b>
2492 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
2499 <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>
2505 Reloads the Record cache from the configured Proxy using the configured Reader and<br/>the options from the last load operation performed.
2512 <dl class="detailList">
2513 <dt class="heading">Parameters:</dt>
2516 <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>
2519 <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>
2537 <td class="msource">
2539 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2545 <tr class="method-row config-row-alt0 expandable">
2546 <td class="micon"><a class="exi" href="#expand"> </a></td>
2550 <a id="Roo.data.Store-method-remove" name=".remove"></a>
2551 <div class="fixedFont">
2552 <span class="attributes"></span><b class="itemname">remove</b>
2554 (Ext.data.Record <B><i>record</i></B>)
2561 <div class="short">Remove a Record from the Store and fires the remove event.</div>
2567 Remove a Record from the Store and fires the remove event.
2574 <dl class="detailList">
2575 <dt class="heading">Parameters:</dt>
2578 <span class="fixedFont">Ext.data.Record</span> <b>record</b>
2581 <dd>The Roo.data.Record object to remove from the cache.</dd>
2599 <td class="msource">
2601 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2607 <tr class="method-row config-row-alt1 expandable">
2608 <td class="micon"><a class="exi" href="#expand"> </a></td>
2612 <a id="Roo.data.Store-method-removeAll" name=".removeAll"></a>
2613 <div class="fixedFont">
2614 <span class="attributes"></span><b class="itemname">removeAll</b>
2623 <div class="short">Remove all Records from the Store and fires the clear event.</div>
2629 Remove all Records from the Store and fires the clear event.
2650 <td class="msource">
2652 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2658 <tr class="method-row config-row-alt0 expandable">
2659 <td class="micon"><a class="exi" href="#expand"> </a></td>
2663 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2664 <div class="fixedFont">
2665 <span class="attributes"></span><b class="itemname">removeListener</b>
2667 (<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>)
2674 <div class="short">Removes a listener</div>
2687 <dl class="detailList">
2688 <dt class="heading">Parameters:</dt>
2691 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2694 <dd>The type of event to listen for</dd>
2697 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2700 <dd>The handler to remove</dd>
2703 <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>
2706 <dd>(optional) The scope (this object) for the handler</dd>
2724 <td class="msource">
2726 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2732 <tr class="method-row config-row-alt1 expandable">
2733 <td class="micon"><a class="exi" href="#expand"> </a></td>
2737 <a id="Roo.data.Store-method-setDefaultSort" name=".setDefaultSort"></a>
2738 <div class="fixedFont">
2739 <span class="attributes"></span><b class="itemname">setDefaultSort</b>
2741 (<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>)
2748 <div class="short">Sets the default sort column and order to be used by the next load operation.</div>
2754 Sets the default sort column and order to be used by the next load operation.
2761 <dl class="detailList">
2762 <dt class="heading">Parameters:</dt>
2765 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>fieldName</b>
2768 <dd>The name of the field to sort by.</dd>
2771 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>dir</b>
2774 <dd>(optional) The sort order, "ASC" or "DESC" (defaults to "ASC")</dd>
2792 <td class="msource">
2794 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2800 <tr class="method-row config-row-alt0 expandable">
2801 <td class="micon"><a class="exi" href="#expand"> </a></td>
2805 <a id="Roo.data.Store-method-sort" name=".sort"></a>
2806 <div class="fixedFont">
2807 <span class="attributes"></span><b class="itemname">sort</b>
2809 (<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>)
2816 <div class="short">Sort the Records.</div>
2822 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.
2829 <dl class="detailList">
2830 <dt class="heading">Parameters:</dt>
2833 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>fieldName</b>
2836 <dd>The name of the field to sort by.</dd>
2839 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>dir</b>
2842 <dd>(optional) The sort order, "ASC" or "DESC" (defaults to "ASC")</dd>
2860 <td class="msource">
2862 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2868 <tr class="method-row config-row-alt1 expandable">
2869 <td class="micon"><a class="exi" href="#expand"> </a></td>
2873 <a id="Roo.data.Store-method-sum" name=".sum"></a>
2874 <div class="fixedFont">
2875 <span class="attributes"></span><b class="itemname">sum</b>
2877 (<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>)
2883 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
2892 <div class="short">Sums the value of <i>property</i> for each record between start and end and returns the result.</div>
2898 Sums the value of <i>property</i> for each record between start and end and returns the result.
2905 <dl class="detailList">
2906 <dt class="heading">Parameters:</dt>
2909 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
2912 <dd>A field on your records</dd>
2915 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>start</b>
2918 <dd>The record index to start at (defaults to 0)</dd>
2921 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>end</b>
2924 <dd>The last record index to include (defaults to length - 1)</dd>
2932 <dl class="detailList">
2933 <dt class="heading">Returns:</dt>
2935 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> The sum</dd>
2949 <td class="msource">
2951 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
2957 <tr class="method-row config-row-alt0 expandable">
2958 <td class="micon"><a class="exi" href="#expand"> </a></td>
2962 <a id="Roo.util.Observable-method-un" name=".un"></a>
2963 <div class="fixedFont">
2964 <span class="attributes"></span><b class="itemname">un</b>
2966 (<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>)
2973 <div class="short">Removes a listener (shorthand for removeListener)</div>
2979 Removes a listener (shorthand for removeListener)
2986 <dl class="detailList">
2987 <dt class="heading">Parameters:</dt>
2990 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2993 <dd>The type of event to listen for</dd>
2996 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2999 <dd>The handler to remove</dd>
3002 <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>
3005 <dd>(optional) The scope (this object) for the handler</dd>
3023 <td class="msource">
3025 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
3034 <!-- ============================== events summary / details ======================== -->
3037 <a id="Roo.data.JsonStore-events"></a>
3046 <table cellspacing="0" class="member-table">
3047 <caption>Events</caption>
3050 <th class="sig-header" colspan="2">Event</th>
3051 <th class="msource-header">Defined By</th>
3060 <tr class="method-row expandable config-row-alt0">
3061 <td class="micon"><a class="exi" href="#expand"> </a></td>
3064 <a id="Roo.data.Store-event-*add"></a>
3066 <div class="fixedFont">
3067 <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>)
3073 <div class="short">Fires when Records have been added to the Store
3079 Fires when Records have been added to the Store
3085 <dl class="detailList">
3086 <dt class="heading">Parameters:</dt>
3089 <span class="fixedFont">Store</span> <b>this</b>
3095 <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>
3098 <dd>The array of Records added</dd>
3101 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3104 <dd>The index at which the record(s) were added</dd>
3122 <td class="msource">
3123 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3127 <tr class="method-row expandable config-row-alt1">
3128 <td class="micon"><a class="exi" href="#expand"> </a></td>
3131 <a id="Roo.data.Store-event-*beforeload"></a>
3133 <div class="fixedFont">
3134 <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>)
3140 <div class="short">Fires before a request is made for a new data object.
3146 Fires before a request is made for a new data object. If the beforeload handler returns false<br/>the load action will be canceled.
3152 <dl class="detailList">
3153 <dt class="heading">Parameters:</dt>
3156 <span class="fixedFont">Store</span> <b>this</b>
3162 <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>
3165 <dd>The loading options that were specified (see {<b>link</b> <b>load</b>} for details)</dd>
3183 <td class="msource">
3184 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3188 <tr class="method-row expandable config-row-alt0">
3189 <td class="micon"><a class="exi" href="#expand"> </a></td>
3192 <a id="Roo.data.Store-event-*clear"></a>
3194 <div class="fixedFont">
3195 <b class="itemname">clear</b> (Store <B><i>this</i></B>)
3201 <div class="short">Fires when the data cache has been cleared.
3207 Fires when the data cache has been cleared.
3213 <dl class="detailList">
3214 <dt class="heading">Parameters:</dt>
3217 <span class="fixedFont">Store</span> <b>this</b>
3238 <td class="msource">
3239 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3243 <tr class="method-row expandable config-row-alt1">
3244 <td class="micon"><a class="exi" href="#expand"> </a></td>
3247 <a id="Roo.data.Store-event-*datachanged"></a>
3249 <div class="fixedFont">
3250 <b class="itemname">datachanged</b> (Store <B><i>this</i></B>)
3256 <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.
3262 Fires when the data cache has changed, and a widget which is using this Store<br/>as a Record cache should refresh its view.
3268 <dl class="detailList">
3269 <dt class="heading">Parameters:</dt>
3272 <span class="fixedFont">Store</span> <b>this</b>
3293 <td class="msource">
3294 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3298 <tr class="method-row expandable config-row-alt0">
3299 <td class="micon"><a class="exi" href="#expand"> </a></td>
3302 <a id="Roo.data.Store-event-*load"></a>
3304 <div class="fixedFont">
3305 <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>)
3311 <div class="short">Fires after a new set of Records has been loaded.
3317 Fires after a new set of Records has been loaded.
3323 <dl class="detailList">
3324 <dt class="heading">Parameters:</dt>
3327 <span class="fixedFont">Store</span> <b>this</b>
3333 <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>
3336 <dd>The Records that were loaded</dd>
3339 <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>
3342 <dd>The loading options that were specified (see {<b>link</b> <b>load</b>} for details)</dd>
3360 <td class="msource">
3361 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3365 <tr class="method-row expandable config-row-alt1">
3366 <td class="micon"><a class="exi" href="#expand"> </a></td>
3369 <a id="Roo.data.Store-event-*loadexception"></a>
3371 <div class="fixedFont">
3372 <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>)
3378 <div class="short">Fires if an exception occurs in the Proxy during loading.
3384 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
3390 <dl class="detailList">
3391 <dt class="heading">Parameters:</dt>
3394 <span class="fixedFont">Proxy</span> <b></b>
3400 <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>
3403 <dd>from JsonData.reader() - success, totalRecords, records</dd>
3406 <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>
3412 <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>
3415 <dd>from your request (normally this contains the Exception)</dd>
3433 <td class="msource">
3434 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3438 <tr class="method-row expandable config-row-alt0">
3439 <td class="micon"><a class="exi" href="#expand"> </a></td>
3442 <a id="Roo.data.Store-event-*metachange"></a>
3444 <div class="fixedFont">
3445 <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>)
3451 <div class="short">Fires when this store's reader provides new metadata (fields).
3457 Fires when this store's reader provides new metadata (fields). This is currently only support for JsonReaders.
3463 <dl class="detailList">
3464 <dt class="heading">Parameters:</dt>
3467 <span class="fixedFont">Store</span> <b>this</b>
3473 <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>
3476 <dd>The JSON metadata</dd>
3494 <td class="msource">
3495 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3499 <tr class="method-row expandable config-row-alt1">
3500 <td class="micon"><a class="exi" href="#expand"> </a></td>
3503 <a id="Roo.data.Store-event-*remove"></a>
3505 <div class="fixedFont">
3506 <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>)
3512 <div class="short">Fires when a Record has been removed from the Store
3518 Fires when a Record has been removed from the Store
3524 <dl class="detailList">
3525 <dt class="heading">Parameters:</dt>
3528 <span class="fixedFont">Store</span> <b>this</b>
3534 <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>
3537 <dd>The Record that was removed</dd>
3540 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3543 <dd>The index at which the record was removed</dd>
3561 <td class="msource">
3562 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3566 <tr class="method-row expandable config-row-alt0">
3567 <td class="micon"><a class="exi" href="#expand"> </a></td>
3570 <a id="Roo.data.Store-event-*update"></a>
3572 <div class="fixedFont">
3573 <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>)
3579 <div class="short">Fires when a Record has been updated
3585 Fires when a Record has been updated
3591 <dl class="detailList">
3592 <dt class="heading">Parameters:</dt>
3595 <span class="fixedFont">Store</span> <b>this</b>
3601 <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>
3604 <dd>The Record that was updated</dd>
3607 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>operation</b>
3610 <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>
3628 <td class="msource">
3629 <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
3640 <!-- ============================== footer ================================= -->
3641 <div class="fineprint" style="clear:both">
3643 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Fri Apr 01 2011 15:12:58 GMT+0800 (HKT)
3645 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>