X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/output/Ext.data.Record.html diff --git a/docs/output/Ext.data.Record.html b/docs/output/Ext.data.Record.html index 8a14dcb5..6c6f9602 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,10 +17,14 @@ 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
@@ -28,10 +32,11 @@ generate a subclass of Ext.data.... This constructor s generate a subclass of Ext.data.Record configured with information about its constituent fields.
The generated constructor has the same signature as this constructor. 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
@@ -58,9 +63,10 @@ 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 | |
set( String name , Object value )
+store of the change (defaults to false)Returns:
| Record | |
set( String name , String/Object/Array value )
:
voidSet the named field to the specified value. For example:
// record has a field named 'firstname'
@@ -151,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:
Parameters:
| Record |
name
: Stringvalue
: String/Object/Array