Properties Methods Events Config Options Direct Link

    DataWriter
      XmlWriter

# Class Ext.data.XmlWriter

Package: | Ext.data
Defined In: | XmlWriter.js
Class: | XmlWriter
Extends: | DataWriter

DataWriter extension for writing an array or single Ext.data.Record object(s) in preparation for executing a remote CRUD action via XML.

## Config Options

Config Options | Defined By
--- | ---
| createRecord : Function Abstract method that should be implemented in all subclasses (e.g.: JsonWriter.createRecord) | DataWriter
| destroyRecord : Function Abstract method that should be implemented in all subclasses (e.g.: JsonWriter.destroyRecord) | DataWriter
| listful : Boolean false by default. Set true to have the DataWriter always write HTTP params as a list, even when acting upon a single... `false` by default. Set `true` to have the DataWriter always write HTTP params as a list, even when acting upon a single record. | DataWriter
| saveRecord : Function Abstract method that should be implemented in all subclasses (e.g.: JsonWriter.saveRecord | DataWriter
| writeAllFields : Boolean false by default. Set true to have DataWriter return ALL fields of a modified record -- not just those that changed.... `false` by default. Set `true` to have DataWriter return ALL fields of a modified record -- not just those that changed. `false` to have DataWriter only request modified fields from a record. | DataWriter

## Public Properties

Property | Defined By
--- | ---
| meta : Mixed This DataWriter's configured metadata as passed to the constructor. | DataWriter

## Public Methods

Method | Defined By
--- | ---
| createRecord( `Ext.data.Record rec` ) : void createRecord createRecord Parameters: `rec` : Ext.data.Record Returns: void | XmlWriter
| destroyRecord( `Ext.data.Record rec` ) : void destroyRecord destroyRecord Parameters: `rec` : Ext.data.Record Returns: void | XmlWriter
| render( `String action`, `Record[] rs`, `Object http`, `Object data` ) : void Final action of a write event. Apply the written data-object to params. Final action of a write event. Apply the written data-object to params. Parameters: `action` : String [Ext.data.Api.create|read|update|destroy] `rs` : Record[] `http` : Object params `data` : Object object populated according to DataReader meta-data "root" and "idProperty" Returns: void | XmlWriter
| updateRecord( `Ext.data.Record rec` ) : void updateRecord updateRecord Parameters: `rec` : Ext.data.Record Returns: void | XmlWriter
| write( `String action`, `Object params`, `Record/Record[] rs` ) : void Writes data in preparation for server-write action. Simply proxies to DataWriter#update, DataWriter#create DataWrite... Writes data in preparation for server-write action. Simply proxies to DataWriter#update, DataWriter#create DataWriter#destroy. Parameters: `action` : String [CREATE|UPDATE|DESTROY] `params` : Object The params-hash to write-to `rs` : Record/Record[] The recordset write. Returns: void | DataWriter

## Public Events

This class has no public events.