Data sources define a connection to a database or other source of data for running reports. Data sources are resources in the repository that can be created, modified, and deleted with the repository service.
As with all descriptors, the descriptors for data sources contain properties and values that define the data source. Different types of data sources have different properties, but all are self-explanatory. For example, the following call returns the descriptor for a virtual data source in the sample data:
The resource descriptor is shown below. The data sources that make up the virtual data source are given as children descriptors of type generic datasource. Each child descriptor has an ID within the virtual data source (PROP_DATASOURCE_SUB_DS _ID) and a repository URI (PROP_REFERENCE_URI):
<resourceDescriptorname="SugarFoodmartVDS"wsType="virtual"uriString="/datasources/SugarFoodmartVDS"isNew="false"> <label>SugarCRM-Foodmart Virtual Data Source</label> <description>Virtual Data Source Combining SugarCRM and Foodmart</description> <creationDate>1366267873303</creationDate>