Class DataSource
This is the basic class that represents a datasource.
This class exposes main functions used to initialize and retrieve information from a DataSource.
Defined in: dfDataWidget.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Construct a new DataSource object.
|
| Method Attributes | Method Name and Description |
|---|---|
|
Internal Function.
|
|
|
execute(callback)
Execute the DataSource.
|
|
|
Return the data resulting from the DataSource execution as Text.
|
|
|
Return the data resulting from the DataSource execution as XML.
|
|
|
getName()
Return the name of the DataSource.
|
|
|
setRequest(request)
|
Class Detail
DataSource()
Construct a new DataSource object.
- Parameters:
- {String} dataSourceName.
- The DataSource name.
- Returns:
- A new DataSource instance
Method Detail
construct()
Internal Function. Initialize the DataSource.
- Parameters:
- {String} dataSourceName.
- The DataSource name.
execute(callback)
Execute the DataSource.
- Parameters:
- callback
{String}
getDataAsText()
Return the data resulting from the DataSource execution as Text.
{Document}
getDataAsXML()
Return the data resulting from the DataSource execution as XML.
{String}
getName()
Return the name of the DataSource.
setRequest(request)
- Parameters:
- request