X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/output/Ext.data.Record.html diff --git a/docs/output/Ext.data.Record.html b/docs/output/Ext.data.Record.html index c1b390db..a95a8b4d 100644 --- a/docs/output/Ext.data.Record.html +++ b/docs/output/Ext.data.Record.html @@ -1,4 +1,4 @@ -
Package: | Ext.data |
Defined In: | Record.js |
Class: | Record |
Extends: | Object |
Instances of this class encapsulate both Record definition information, and Record +
Package: | Ext.data |
Defined In: | Record.js |
Class: | Record |
Extends: | Object |
Instances of this class encapsulate both Record definition information, and Record value information for use in Ext.data.Store objects, or any code which needs to access Records cached in an Ext.data.Store object.
Constructors for this class are generated by passing an Array of field definition objects to create. @@ -17,20 +17,26 @@ is represented by a property of that name in this object. Note that unless you s with name "id" in the Record definition, this will not contain an id property.
This property is stored in the Record definition's prototype
-A MixedCollection containing the defined Fields for this Record. Read-only.Only present if this Record was created by an ArrayReader or a JsonReader.
+The Array or object which was the source of the data for this Record.
Only present if this Record was created by an XmlReader.
+The XML element which was the source of the data for this Record.
Method | Defined By | |
---|---|---|
Record( [Object data ], [Object id ] )
This constructor should not be used to create Record objects. Instead, use create to
-generate a subclass of Ext.data.... This constructor should not be used to create Record objects. Instead, use create to
-generate a subclass of Ext.data.Record configured with information about its constituent fields. Parameters:
| Record | |
Record.id( Record rec )
+for each field will be assigned.id : Object(Optional) The id of the Record. The id is used by the
+Ext.data.Store object which owns the Record to index its collection
+of Records (therefore this id should be unique within each store). If an
+ id is not specified a phantom
+Record will be created with an automatically generated id.
| Record | |
Record.id( Record rec )
:
StringGenerates a sequential id. This method is typically called when a record is created
and no id has been specified. The... Generates a sequential id. This method is typically called when a record is created
@@ -57,11 +63,12 @@ Commits all changes made to the Record since either creation, or the last commit
to have their code notified of commit operations. Parameters:
| Record | |
copy( [String id ] )
:
- RecordCreates a copy of this Record. Creates a copy of this Record. Parameters:
| Record | |
create( Array o )
+ RecordCreates a copy (clone) of this Record. Creates a copy (clone) of this Record. Parameters:
| Record | |
create( Array o )
:
- function<static> Generate a constructor for a specific Record layout. <static> Generate a constructor for a specific Record layout. Parameters:
| Record | |
endEdit()
+myStore.add(myNewRecord);Returns:
| Record | |
endEdit()
:
void End an edit. If any data was modified, the containing store is notified
(ie, the store's update event will fire). End an edit. If any data was modified, the containing store is notified
@@ -150,7 +157,7 @@ rec.modified records
-rec.data['firstname'] = 'Wilma'); // updates record, but not the view
+rec.data['firstname'] = 'Wilma'; // updates record, but not the view
rec.commit(); // updates the view
Notes:
|