2 |
aperonnet |
1 |
<div class="body-wrap">
|
|
|
2 |
<div class="top-tools">
|
|
|
3 |
<a class="inner-link" href="#Ext.data.Record-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
|
|
|
4 |
<a class="inner-link" href="#Ext.data.Record-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
|
|
|
5 |
<a class="inner-link" href="#Ext.data.Record-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
|
|
|
6 |
<a class="bookmark" href="../docs/?class=Ext.data.Record"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
|
|
|
7 |
</div>
|
|
|
8 |
<h1>Class Ext.data.Record</h1>
|
|
|
9 |
<table cellspacing="0">
|
|
|
10 |
<tr><td class="label">Package:</td><td class="hd-info">Ext.data</td></tr>
|
|
|
11 |
<tr><td class="label">Defined In:</td><td class="hd-info"><a href="../source/data/Record.js" target="_blank">Record.js</a></td></tr>
|
|
|
12 |
<tr><td class="label">Class:</td><td class="hd-info">Record</td></tr>
|
|
|
13 |
<tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr>
|
|
|
14 |
</table>
|
|
|
15 |
<div class="description">
|
|
|
16 |
Instances of this class encapsulate both record <em>definition</em> information, and record
|
|
|
17 |
<em>value</em> information for use in <a ext:cls="Ext.data.Store" href="output/Ext.data.Store.html">Ext.data.Store</a> objects, or any code which needs
|
|
|
18 |
to access Records cached in an <a ext:cls="Ext.data.Store" href="output/Ext.data.Store.html">Ext.data.Store</a> object.<br>
|
|
|
19 |
<p>
|
|
|
20 |
Constructors for this class are generated by passing an Array of field definition objects to <a ext:cls="Ext.data.Record" ext:member="create" href="output/Ext.data.Record.html#create">create</a>.
|
|
|
21 |
Instances are usually only created by <a ext:cls="Ext.data.Reader" href="output/Ext.data.Reader.html">Ext.data.Reader</a> implementations when processing unformatted data
|
|
|
22 |
objects.<br>
|
|
|
23 |
<p>
|
|
|
24 |
Record objects generated by this constructor inherit all the methods of Ext.data.Record listed below. </div>
|
|
|
25 |
|
|
|
26 |
<div class="hr"></div>
|
|
|
27 |
<a id="Ext.data.Record-props"></a>
|
|
|
28 |
<h2>Public Properties</h2>
|
|
|
29 |
<table cellspacing="0" class="member-table">
|
|
|
30 |
<tr>
|
|
|
31 |
<th class="sig-header" colspan="2">Property</th>
|
|
|
32 |
<th class="msource-header">Defined By</th>
|
|
|
33 |
</tr>
|
|
|
34 |
<tr class="property-row">
|
|
|
35 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
36 |
<td class="sig">
|
|
|
37 |
<a id="Ext.data.Record-data"></a>
|
|
|
38 |
<b>data</b> : Object <div class="mdesc">
|
|
|
39 |
The data for this record an object hash. </div>
|
|
|
40 |
</td>
|
|
|
41 |
<td class="msource">Record</td>
|
|
|
42 |
</tr>
|
|
|
43 |
<tr class="property-row alt">
|
|
|
44 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
45 |
<td class="sig">
|
|
|
46 |
<a id="Ext.data.Record-dirty"></a>
|
|
|
47 |
<b>dirty</b> : Boolean <div class="mdesc">
|
|
|
48 |
|
|
|
49 |
Readonly flag - true if this record has been modified. </div>
|
|
|
50 |
</td>
|
|
|
51 |
<td class="msource">Record</td>
|
|
|
52 |
</tr>
|
|
|
53 |
<tr class="property-row">
|
|
|
54 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
55 |
<td class="sig">
|
|
|
56 |
<a id="Ext.data.Record-id"></a>
|
|
|
57 |
<b>id</b> : Object <div class="mdesc">
|
|
|
58 |
|
|
|
59 |
The unique ID of the record as specified at construction time. </div>
|
|
|
60 |
</td>
|
|
|
61 |
<td class="msource">Record</td>
|
|
|
62 |
</tr>
|
|
|
63 |
<tr class="property-row alt expandable">
|
|
|
64 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
65 |
<td class="sig">
|
|
|
66 |
<a id="Ext.data.Record-modified"></a>
|
|
|
67 |
<b>modified</b> : Object <div class="mdesc">
|
|
|
68 |
<div class="short">This object contains a key and value storing the original values of all modified fields or is null if no fields have ...</div>
|
|
|
69 |
<div class="long">
|
|
|
70 |
This object contains a key and value storing the original values of all modified fields or is null if no fields have been modified. </div>
|
|
|
71 |
</div>
|
|
|
72 |
</td>
|
|
|
73 |
<td class="msource">Record</td>
|
|
|
74 |
</tr>
|
|
|
75 |
</table>
|
|
|
76 |
<a id="Ext.data.Record-methods"></a>
|
|
|
77 |
<h2>Public Methods</h2>
|
|
|
78 |
<table cellspacing="0" class="member-table">
|
|
|
79 |
<tr>
|
|
|
80 |
<th class="sig-header" colspan="2">Method</th>
|
|
|
81 |
<th class="msource-header">Defined By</th>
|
|
|
82 |
</tr>
|
|
|
83 |
<tr class="method-row expandable">
|
|
|
84 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
85 |
<td class="sig">
|
|
|
86 |
<a id="Ext.data.Record-Record"></a>
|
|
|
87 |
<b>Record</b>( <code>Array data</code>, <span class="optional" title="Optional">[<code>Object id</code>]</span> ) <div class="mdesc">
|
|
|
88 |
<div class="short">This constructor should not be used to create Record objects. Instead, use the constructor generated by
|
|
|
89 |
create. The p...</div>
|
|
|
90 |
<div class="long">
|
|
|
91 |
This constructor should not be used to create Record objects. Instead, use the constructor generated by
|
|
|
92 |
<a ext:cls="Ext.data.Record" ext:member="create" href="output/Ext.data.Record.html#create">create</a>. The parameters are the same. <div class="mdetail-params">
|
|
|
93 |
<strong>Parameters:</strong>
|
|
|
94 |
<ul><li><code>data</code> : Array<div class="sub-desc">An associative Array of data values keyed by the field name.</div></li><li><code>id</code> : Object<div class="sub-desc">(Optional) The id of the record. This id should be unique, and is used by the
|
|
|
95 |
<a ext:cls="Ext.data.Store" href="output/Ext.data.Store.html">Ext.data.Store</a> object which owns the Record to index its collection of Records. If
|
|
|
96 |
not specified an integer id is generated.</div></li> </ul>
|
|
|
97 |
<strong>Returns:</strong>
|
|
|
98 |
<ul>
|
|
|
99 |
<li><code></code></li>
|
|
|
100 |
</ul>
|
|
|
101 |
</div>
|
|
|
102 |
</div>
|
|
|
103 |
</div>
|
|
|
104 |
</td>
|
|
|
105 |
<td class="msource">Record</td>
|
|
|
106 |
</tr>
|
|
|
107 |
<tr class="method-row alt expandable">
|
|
|
108 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
109 |
<td class="sig">
|
|
|
110 |
<a id="Ext.data.Record-beginEdit"></a>
|
|
|
111 |
<b>beginEdit</b>() : void <div class="mdesc">
|
|
|
112 |
<div class="short">Begin an edit. While in edit mode, no events are relayed to the containing store.</div>
|
|
|
113 |
<div class="long">
|
|
|
114 |
Begin an edit. While in edit mode, no events are relayed to the containing store. <div class="mdetail-params">
|
|
|
115 |
<strong>Parameters:</strong>
|
|
|
116 |
<ul><li>None.</li> </ul>
|
|
|
117 |
<strong>Returns:</strong>
|
|
|
118 |
<ul>
|
|
|
119 |
<li><code>void</code></li>
|
|
|
120 |
</ul>
|
|
|
121 |
</div>
|
|
|
122 |
</div>
|
|
|
123 |
</div>
|
|
|
124 |
</td>
|
|
|
125 |
<td class="msource">Record</td>
|
|
|
126 |
</tr>
|
|
|
127 |
<tr class="method-row expandable">
|
|
|
128 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
129 |
<td class="sig">
|
|
|
130 |
<a id="Ext.data.Record-cancelEdit"></a>
|
|
|
131 |
<b>cancelEdit</b>() : void <div class="mdesc">
|
|
|
132 |
<div class="short">Cancels all changes made in the current edit operation.</div>
|
|
|
133 |
<div class="long">
|
|
|
134 |
Cancels all changes made in the current edit operation. <div class="mdetail-params">
|
|
|
135 |
<strong>Parameters:</strong>
|
|
|
136 |
<ul><li>None.</li> </ul>
|
|
|
137 |
<strong>Returns:</strong>
|
|
|
138 |
<ul>
|
|
|
139 |
<li><code>void</code></li>
|
|
|
140 |
</ul>
|
|
|
141 |
</div>
|
|
|
142 |
</div>
|
|
|
143 |
</div>
|
|
|
144 |
</td>
|
|
|
145 |
<td class="msource">Record</td>
|
|
|
146 |
</tr>
|
|
|
147 |
<tr class="method-row alt expandable">
|
|
|
148 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
149 |
<td class="sig">
|
|
|
150 |
<a id="Ext.data.Record-commit"></a>
|
|
|
151 |
<b>commit</b>( <span class="optional" title="Optional">[<code>Boolean silent</code>]</span> ) : void <div class="mdesc">
|
|
|
152 |
<div class="short">Usually called by the Ext.data.Store which owns the Record.
|
|
|
153 |
Commits all changes made to the Record since either creat...</div>
|
|
|
154 |
<div class="long">
|
|
|
155 |
Usually called by the <a ext:cls="Ext.data.Store" href="output/Ext.data.Store.html">Ext.data.Store</a> which owns the Record.
|
|
|
156 |
Commits all changes made to the Record since either creation, or the last commit operation.
|
|
|
157 |
<p>
|
|
|
158 |
Developers should subscribe to the <a ext:cls="Ext.data.Store" ext:member="update" href="output/Ext.data.Store.html#update">Ext.data.Store.update</a> event to have their code notified
|
|
|
159 |
of commit operations. <div class="mdetail-params">
|
|
|
160 |
<strong>Parameters:</strong>
|
|
|
161 |
<ul><li><code>silent</code> : Boolean<div class="sub-desc">(optional) True to skip notification of the owning store of the change (defaults to false)</div></li> </ul>
|
|
|
162 |
<strong>Returns:</strong>
|
|
|
163 |
<ul>
|
|
|
164 |
<li><code>void</code></li>
|
|
|
165 |
</ul>
|
|
|
166 |
</div>
|
|
|
167 |
</div>
|
|
|
168 |
</div>
|
|
|
169 |
</td>
|
|
|
170 |
<td class="msource">Record</td>
|
|
|
171 |
</tr>
|
|
|
172 |
<tr class="method-row expandable">
|
|
|
173 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
174 |
<td class="sig">
|
|
|
175 |
<a id="Ext.data.Record-copy"></a>
|
|
|
176 |
<b>copy</b>( <span class="optional" title="Optional">[<code>String id</code>]</span> ) : Record <div class="mdesc">
|
|
|
177 |
<div class="short">Creates a copy of this record.</div>
|
|
|
178 |
<div class="long">
|
|
|
179 |
Creates a copy of this record. <div class="mdetail-params">
|
|
|
180 |
<strong>Parameters:</strong>
|
|
|
181 |
<ul><li><code>id</code> : String<div class="sub-desc">(optional) A new record id if you don't want to use this record's id</div></li> </ul>
|
|
|
182 |
<strong>Returns:</strong>
|
|
|
183 |
<ul>
|
|
|
184 |
<li><code>Record</code></li>
|
|
|
185 |
</ul>
|
|
|
186 |
</div>
|
|
|
187 |
</div>
|
|
|
188 |
</div>
|
|
|
189 |
</td>
|
|
|
190 |
<td class="msource">Record</td>
|
|
|
191 |
</tr>
|
|
|
192 |
<tr class="method-row alt expandable">
|
|
|
193 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
194 |
<td class="sig">
|
|
|
195 |
<a id="Ext.data.Record-create"></a>
|
|
|
196 |
<b>create</b>( <span class="optional" title="Optional">[<code>Array o</code>]</span> ) : function <div class="mdesc">
|
|
|
197 |
<div class="short"><static> Generate a constructor for a specific record layout.</div>
|
|
|
198 |
<div class="long">
|
|
|
199 |
<static> Generate a constructor for a specific record layout. <div class="mdetail-params">
|
|
|
200 |
<strong>Parameters:</strong>
|
|
|
201 |
<ul><li><code>o</code> : Array<div class="sub-desc">An Array of field definition objects which specify field names, and optionally,
|
|
|
202 |
data types, and a mapping for an <a ext:cls="Ext.data.Reader" href="output/Ext.data.Reader.html">Ext.data.Reader</a> to extract the field's value from a data object.
|
|
|
203 |
Each field definition object may contain the following properties: <ul>
|
|
|
204 |
<li><b>name</b> : String<p style="margin-left:1em">The name by which the field is referenced within the Record. This is referenced by,
|
|
|
205 |
for example the <em>dataIndex</em> property in column definition objects passed to <a ext:cls="Ext.grid.ColumnModel" href="output/Ext.grid.ColumnModel.html">Ext.grid.ColumnModel</a></p></li>
|
|
|
206 |
<li><b>mapping</b> : String<p style="margin-left:1em">(Optional) A path specification for use by the <a ext:cls="Ext.data.Reader" href="output/Ext.data.Reader.html">Ext.data.Reader</a> implementation
|
|
|
207 |
that is creating the Record to access the data value from the data object. If an <a ext:cls="Ext.data.JsonReader" href="output/Ext.data.JsonReader.html">Ext.data.JsonReader</a>
|
|
|
208 |
is being used, then this is a string containing the javascript expression to reference the data relative to
|
|
|
209 |
the record item's root. If an <a ext:cls="Ext.data.XmlReader" href="output/Ext.data.XmlReader.html">Ext.data.XmlReader</a> is being used, this is an <a ext:cls="Ext.DomQuery" href="output/Ext.DomQuery.html">Ext.DomQuery</a> path
|
|
|
210 |
to the data item relative to the record element. If the mapping expression is the same as the field name,
|
|
|
211 |
this may be omitted.</p></li>
|
|
|
212 |
<li><b>type</b> : String<p style="margin-left:1em">(Optional) The data type for conversion to displayable value. Possible values are
|
|
|
213 |
<ul><li>auto (Default, implies no conversion)</li>
|
|
|
214 |
<li>string</li>
|
|
|
215 |
<li>int</li>
|
|
|
216 |
<li>float</li>
|
|
|
217 |
<li>boolean</li>
|
|
|
218 |
<li>date</li></ul></p></li>
|
|
|
219 |
<li><b>sortType</b> : Mixed<p style="margin-left:1em">(Optional) A member of <a ext:cls="Ext.data.SortTypes" href="output/Ext.data.SortTypes.html">Ext.data.SortTypes</a>.</p></li>
|
|
|
220 |
<li><b>sortDir</b> : String<p style="margin-left:1em">(Optional) Initial direction to sort. "ASC" or "DESC"</p></li>
|
|
|
221 |
<li><b>convert</b> : Function<p style="margin-left:1em">(Optional) A function which converts the value provided
|
|
|
222 |
by the Reader into an object that will be stored in the Record. It is passed the
|
|
|
223 |
following parameters:<ul>
|
|
|
224 |
<li><b>v</b> : Mixed<p style="margin-left:1em">The data value as read by the Reader.</p></li>
|
|
|
225 |
<li><b>rec</b> : Mixed<p style="margin-left:1em">The data object containting the row as read by the Reader.
|
|
|
226 |
Depending on Reader type, this could be an Array, an object, or an XML element.</p></li>
|
|
|
227 |
</ul></p></li>
|
|
|
228 |
<li><b>dateFormat</b> : String<p style="margin-left:1em">(Optional) A format String for the Date.parseDate function.</p></li>
|
|
|
229 |
</ul>
|
|
|
230 |
<br>usage:<br><pre><code>var TopicRecord = Ext.data.Record.create([
|
|
|
231 |
{name: <em>'title'</em>, mapping: <em>'topic_title'</em>},
|
|
|
232 |
{name: <em>'author'</em>, mapping: <em>'username'</em>},
|
|
|
233 |
{name: <em>'totalPosts'</em>, mapping: <em>'topic_replies'</em>, type: <em>'int'</em>},
|
|
|
234 |
{name: <em>'lastPost'</em>, mapping: <em>'post_time'</em>, type: <em>'date'</em>},
|
|
|
235 |
{name: <em>'lastPoster'</em>, mapping: <em>'user2'</em>},
|
|
|
236 |
{name: <em>'excerpt'</em>, mapping: <em>'post_text'</em>}
|
|
|
237 |
]);
|
|
|
238 |
|
|
|
239 |
<b>var</b> myNewRecord = <b>new</b> TopicRecord({
|
|
|
240 |
title: <em>'Do my job please'</em>,
|
|
|
241 |
author: <em>'noobie'</em>,
|
|
|
242 |
totalPosts: 1,
|
|
|
243 |
lastPost: <b>new</b> Date(),
|
|
|
244 |
lastPoster: <em>'Animal'</em>,
|
|
|
245 |
excerpt: <em>'No way dude!'</em>
|
|
|
246 |
});
|
|
|
247 |
myStore.add(myNewRecord);</code></pre>
|
|
|
248 |
<p>In the simplest case, if no properties other than <tt>name</tt> are required, a field definition
|
|
|
249 |
may consist of just a field name string.</p></div></li> </ul>
|
|
|
250 |
<strong>Returns:</strong>
|
|
|
251 |
<ul>
|
|
|
252 |
<li><code>function</code><div class="sub-desc">A constructor which is used to create new Records according to the definition.</div></li>
|
|
|
253 |
</ul>
|
|
|
254 |
</div>
|
|
|
255 |
</div>
|
|
|
256 |
</div>
|
|
|
257 |
</td>
|
|
|
258 |
<td class="msource">Record</td>
|
|
|
259 |
</tr>
|
|
|
260 |
<tr class="method-row expandable">
|
|
|
261 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
262 |
<td class="sig">
|
|
|
263 |
<a id="Ext.data.Record-endEdit"></a>
|
|
|
264 |
<b>endEdit</b>() : void <div class="mdesc">
|
|
|
265 |
<div class="short">End an edit. If any data was modified, the containing store is notified.</div>
|
|
|
266 |
<div class="long">
|
|
|
267 |
End an edit. If any data was modified, the containing store is notified. <div class="mdetail-params">
|
|
|
268 |
<strong>Parameters:</strong>
|
|
|
269 |
<ul><li>None.</li> </ul>
|
|
|
270 |
<strong>Returns:</strong>
|
|
|
271 |
<ul>
|
|
|
272 |
<li><code>void</code></li>
|
|
|
273 |
</ul>
|
|
|
274 |
</div>
|
|
|
275 |
</div>
|
|
|
276 |
</div>
|
|
|
277 |
</td>
|
|
|
278 |
<td class="msource">Record</td>
|
|
|
279 |
</tr>
|
|
|
280 |
<tr class="method-row alt expandable">
|
|
|
281 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
282 |
<td class="sig">
|
|
|
283 |
<a id="Ext.data.Record-get"></a>
|
|
|
284 |
<b>get</b>( <code>String name</code> ) : Object <div class="mdesc">
|
|
|
285 |
<div class="short">Get the value of the named field.</div>
|
|
|
286 |
<div class="long">
|
|
|
287 |
Get the value of the named field. <div class="mdetail-params">
|
|
|
288 |
<strong>Parameters:</strong>
|
|
|
289 |
<ul><li><code>name</code> : String<div class="sub-desc">The name of the field to get the value of.</div></li> </ul>
|
|
|
290 |
<strong>Returns:</strong>
|
|
|
291 |
<ul>
|
|
|
292 |
<li><code>Object</code><div class="sub-desc">The value of the field.</div></li>
|
|
|
293 |
</ul>
|
|
|
294 |
</div>
|
|
|
295 |
</div>
|
|
|
296 |
</div>
|
|
|
297 |
</td>
|
|
|
298 |
<td class="msource">Record</td>
|
|
|
299 |
</tr>
|
|
|
300 |
<tr class="method-row expandable">
|
|
|
301 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
302 |
<td class="sig">
|
|
|
303 |
<a id="Ext.data.Record-getChanges"></a>
|
|
|
304 |
<b>getChanges</b>() : Object <div class="mdesc">
|
|
|
305 |
<div class="short">Gets a hash of only the fields that have been modified since this record was created or commited.</div>
|
|
|
306 |
<div class="long">
|
|
|
307 |
Gets a hash of only the fields that have been modified since this record was created or commited. <div class="mdetail-params">
|
|
|
308 |
<strong>Parameters:</strong>
|
|
|
309 |
<ul><li>None.</li> </ul>
|
|
|
310 |
<strong>Returns:</strong>
|
|
|
311 |
<ul>
|
|
|
312 |
<li><code>Object</code></li>
|
|
|
313 |
</ul>
|
|
|
314 |
</div>
|
|
|
315 |
</div>
|
|
|
316 |
</div>
|
|
|
317 |
</td>
|
|
|
318 |
<td class="msource">Record</td>
|
|
|
319 |
</tr>
|
|
|
320 |
<tr class="method-row alt expandable">
|
|
|
321 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
322 |
<td class="sig">
|
|
|
323 |
<a id="Ext.data.Record-isModified"></a>
|
|
|
324 |
<b>isModified</b>( <code>String fieldName</code> ) : Boolean <div class="mdesc">
|
|
|
325 |
<div class="short">Returns true if the field passed has been modified since the load or last commit.</div>
|
|
|
326 |
<div class="long">
|
|
|
327 |
Returns true if the field passed has been modified since the load or last commit. <div class="mdetail-params">
|
|
|
328 |
<strong>Parameters:</strong>
|
|
|
329 |
<ul><li><code>fieldName</code> : String<div class="sub-desc"></div></li> </ul>
|
|
|
330 |
<strong>Returns:</strong>
|
|
|
331 |
<ul>
|
|
|
332 |
<li><code>Boolean</code></li>
|
|
|
333 |
</ul>
|
|
|
334 |
</div>
|
|
|
335 |
</div>
|
|
|
336 |
</div>
|
|
|
337 |
</td>
|
|
|
338 |
<td class="msource">Record</td>
|
|
|
339 |
</tr>
|
|
|
340 |
<tr class="method-row expandable">
|
|
|
341 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
342 |
<td class="sig">
|
|
|
343 |
<a id="Ext.data.Record-reject"></a>
|
|
|
344 |
<b>reject</b>( <span class="optional" title="Optional">[<code>Boolean silent</code>]</span> ) : void <div class="mdesc">
|
|
|
345 |
<div class="short">Usually called by the Ext.data.Store which owns the Record.
|
|
|
346 |
Rejects all changes made to the Record since either creat...</div>
|
|
|
347 |
<div class="long">
|
|
|
348 |
Usually called by the <a ext:cls="Ext.data.Store" href="output/Ext.data.Store.html">Ext.data.Store</a> which owns the Record.
|
|
|
349 |
Rejects all changes made to the Record since either creation, or the last commit operation.
|
|
|
350 |
Modified fields are reverted to their original values.
|
|
|
351 |
<p>
|
|
|
352 |
Developers should subscribe to the <a ext:cls="Ext.data.Store" ext:member="update" href="output/Ext.data.Store.html#update">Ext.data.Store.update</a> event to have their code notified
|
|
|
353 |
of reject operations. <div class="mdetail-params">
|
|
|
354 |
<strong>Parameters:</strong>
|
|
|
355 |
<ul><li><code>silent</code> : Boolean<div class="sub-desc">(optional) True to skip notification of the owning store of the change (defaults to false)</div></li> </ul>
|
|
|
356 |
<strong>Returns:</strong>
|
|
|
357 |
<ul>
|
|
|
358 |
<li><code>void</code></li>
|
|
|
359 |
</ul>
|
|
|
360 |
</div>
|
|
|
361 |
</div>
|
|
|
362 |
</div>
|
|
|
363 |
</td>
|
|
|
364 |
<td class="msource">Record</td>
|
|
|
365 |
</tr>
|
|
|
366 |
<tr class="method-row alt expandable">
|
|
|
367 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
368 |
<td class="sig">
|
|
|
369 |
<a id="Ext.data.Record-set"></a>
|
|
|
370 |
<b>set</b>( <code>String name</code>, <code>Object value</code> ) : void <div class="mdesc">
|
|
|
371 |
<div class="short">Set the named field to the specified value.</div>
|
|
|
372 |
<div class="long">
|
|
|
373 |
Set the named field to the specified value. <div class="mdetail-params">
|
|
|
374 |
<strong>Parameters:</strong>
|
|
|
375 |
<ul><li><code>name</code> : String<div class="sub-desc">The name of the field to set.</div></li><li><code>value</code> : Object<div class="sub-desc">The value to set the field to.</div></li> </ul>
|
|
|
376 |
<strong>Returns:</strong>
|
|
|
377 |
<ul>
|
|
|
378 |
<li><code>void</code></li>
|
|
|
379 |
</ul>
|
|
|
380 |
</div>
|
|
|
381 |
</div>
|
|
|
382 |
</div>
|
|
|
383 |
</td>
|
|
|
384 |
<td class="msource">Record</td>
|
|
|
385 |
</tr>
|
|
|
386 |
</table>
|
|
|
387 |
<a id="Ext.data.Record-events"></a>
|
|
|
388 |
<h2>Public Events</h2>
|
|
|
389 |
<div class="no-members">This class has no public events.</div>
|
|
|
390 |
</div>
|