Field Summary |
public
| autoload: Boolean |
| Controls whether the XML document is loaded automatically when the source property is set
|
|
public static
| classInfo: Object |
| A static class information object
|
|
public
| rootNode: XMLNode |
| the root node of the document the parent of the currentItem/items array
|
|
|
| Fields inherited from class xp.data.DataSourceautoCommit, autoEdit, autoInsert, calcFields, classInfo, deltaPacket, itemClassName, logChanges, newDataItem, nodeName, usesManualCommit |
|
|
|
Property Summary |
public
| data: Object (read, write) |
| Get or set the data object encapsulated by this datasource
|
|
public
| document: XMLNode (read, write) |
| The XML document encapsulated by this datasource
|
|
public
| inline: XMLNode (read, write) |
| sets inline data from Fluid*
|
|
public
| path: String (read, write) |
| The xpath into the document that this source will bind to
|
|
public
| source: String (read, write) |
| The URL of an XML dcoument to be loaded
|
|
|
|
|
Constructor |
public
| XMLDataSource (
source: String, path: String, autoload: Boolean)
|
| Constructor
|
|
Method Summary |
public
| getClass (
): Function |
| Returns a reference to the components static class
|
|
public
| getDocumentElement (
): XMLNode |
| Returns the document element node of the current document
|
|
public
| getFieldValue (
index: Number, fieldName: String
): Object |
| Gets data in a user-editable format - relaxed return type
|
|
public
| refresh (
): Void |
| Refresh the data from its source
|
|
public
| setFieldValue (
index: Number, fieldName: String, newData: Object
): Void |
| Edits one field
|
|
public
| sortItemsOn (
fieldName: String, options: Number
): Void |
| Sorts the list
|
|
| Methods inherited from class xp.data.ListDataSourceaddDataRelation, addItem, addItemAt, addItemsAt, editField, first, getClass, getFieldValue, getItemAt, getIterator, getKeyValue, isEmpty, isFirst, isLast, last, locateById, lookup, moveBy, next, prior, removeAll, removeItem, removeItemAt, removeItemsAt, replaceItem, replaceItemAt, setFieldValue, setFilter, setKeyConstraint, sortItems, sortItemsOn |
|
| Methods inherited from class xp.data.DataSourceapplyChanges, applyUpdates, cancelChanges, checkSchema, commitChanges, createItem, deleteItem, editItem, getClass, insertItem, rollbackChanges, toString, validate |
|
|
|
|
Event summary for the ListDataSource class
The following table lists events of the ListDataSource class.