X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..92c2b89db26be16707f4a805d3303ab2531006e1:/docs/output/Ext.data.XmlReader.html?ds=inline diff --git a/docs/output/Ext.data.XmlReader.html b/docs/output/Ext.data.XmlReader.html index 27b44e62..1d16059b 100644 --- a/docs/output/Ext.data.XmlReader.html +++ b/docs/output/Ext.data.XmlReader.html @@ -1,4 +1,4 @@ -
DataReader XmlReader
Package: | Ext.data |
Defined In: | XmlReader.js |
Class: | XmlReader |
Extends: | DataReader |
Data reader class to create an Array of Ext.data.Record objects from an XML document +
DataReader XmlReader
Package: | Ext.data |
Defined In: | XmlReader.js |
Class: | XmlReader |
Extends: | DataReader |
Data reader class to create an Array of Ext.data.Record objects from an XML document based on mappings in a provided Ext.data.Record constructor.
Note: that in order for the browser to parse a returned XML document, the Content-Type header in the HTTP response must be set to "text/xml" or "application/xml".
@@ -8,9 +8,10 @@ header in the HTTP response must be set to "text/xml" or "application/xml". {name: 'occupation'} // This field will use "occupation" as the mapping. ]); var myReader = new Ext.data.XmlReader({ - totalRecords: "results", // The element which contains the total dataset size (optional) + totalProperty: "results", // The element which contains the total dataset size (optional) record: "row", // The repeated element which contains row information - id: "id" // The element within the row that provides an ID for the record (optional) + idProperty: "id" // The element within the row that provides an ID for the record (optional) + messageProperty: "msg" // The element within the response that provides a user-feedback message (optional) }, Employee);This would consume an XML file like this: @@ -32,10 +33,10 @@ will be passed to Ext.data.Record.create, or a Record constructo...
Either an Array of Field definition objects (which will be passed to Ext.data.Record.create, or a Record constructor created from Ext.data.Record.create.
Property | Defined By | |
---|---|---|
buildExtractors : Object Abstract method, overridden in Ext.data.JsonReader | DataReader | |
meta : Mixed This DataReader's configured metadata as passed to the constructor. | DataReader | |
xmlData : XMLDocument After any data loads/reads, the raw XML Document is available for further custom processing. | XmlReader |
Method | Defined By | |
---|---|---|
XmlReader( Object meta , Object recordType )
+paged from the remote server. | XmlReader |
Property | Defined By | |
---|---|---|
buildExtractors : Object Abstract method, overridden in DataReader extensions such as Ext.data.JsonReader and Ext.data.XmlReader | DataReader | |
extractData : Object Abstract method overridden in DataReader extensions such as Ext.data.JsonReader and Ext.data.XmlReader | DataReader | |
extractValues : Object Abstract method overridden in DataReader extensions such as Ext.data.JsonReader and Ext.data.XmlReader | DataReader | |
getId : Object Abstract method created in extension's buildExtractors impl. | DataReader | |
getMessage : Object Abstract method created in extension's buildExtractors impl. | DataReader | |
getRoot : Object Abstract method created in extension's buildExtractors impl. | DataReader | |
getSuccess : Object Abstract method created in extension's buildExtractors impl. | DataReader | |
getTotal : Object Abstract method created in extension's buildExtractors impl. | DataReader | |
meta : Mixed This DataReader's configured metadata as passed to the constructor. | DataReader | |
xmlData : XMLDocument After any data loads/reads, the raw XML Document is available for further custom processing. | XmlReader |
Method | Defined By | |
---|---|---|
XmlReader( Object meta , Object recordType )
Create a new XmlReader. Create a new XmlReader. Parameters:
| XmlReader | |
isData( Object data )
:
@@ -48,7 +49,9 @@ to contain a property called responseXML which refers to an XML documen
a cache of Ext.data.Records. | XmlReader | |
readRecords( Object doc )
:
ObjectCreate a data block containing Ext.data.Records from an XML document. Create a data block containing Ext.data.Records from an XML document. Parameters:
| XmlReader | |
realize( Record/Record[] record , Object/Object[] data )
+a cache of Ext.data.Records. | XmlReader | |
readResponse( String action , Object response )
+ :
+ Ext.data.ResponseDecode a json response from server. Decode a json response from server. Parameters:
| XmlReader | |
realize( Record/Record[] record , Object/Object[] data )
:
voidUsed for un-phantoming a record after a successful database insert. Sets the records pk along with new data from ser... Used for un-phantoming a record after a successful database insert. Sets the records pk along with new data from server.
You must return at least the database pk using the idProperty defined in your DataReader configuration. The incoming
|