Function Namespace initDataSource
taoApi
Defined in: api.js.
Constructor Attributes | Constructor Name and Description |
---|---|
initDataSource(environment, settings)
This fuction enables you to set up the data the item need.
|
Function Namespace Detail
initDataSource(environment, settings)
This fuction enables you to set up the data the item need.
You can retrieve this data from either a remote or a manual source.
If you don't need to change the default values, don't call this function.
- Parameters:
- {Object} environment
- set to null if you want to keep all the default values
- {String} environment.type Optional, Default: "async"
- the datasource type (manual|sync|async)
- {String} environment.url Optional, Default: "/taoDelivery/ResultDelivery/initialize"
- the url of the server where the data are sent
- {Object} environment.params Optional
- the additional parameters to send with the data
- {Object} settings
- set to null if you want to keep all the default values
- {String} settings.format Optional, Default: "json"
- the data format. Only json is supported in the current version
- {String} settings.method Optional, Default: "post"
- HTTP method to push the data (get|post)