DataSource Object
Discussion
Use this object to reference objects in the DataSources collection. Since the DataSource object represents a generic data source, the properties change to reflect the underlying data source.
The DataSource object does not have a type constant in the xtrObjectType value list. It derives the value for the Type property from the data source it currently represents. Because of this and other differences, it is not as effective as specific data source objects, such as an IqdDataSource.
To get the full functionality available with the DataSource object, use a statement like this in Visual Basic or VB-compatible editor:
Dim objDataSource As CognosTransformer.DataSource
To save changes to the properties of this object, use the Update method.
Related Topics
These tables list related collections, methods, and properties.
Method |
Description |
---|---|
Deletes the DataSource object. |
|
Moves the DataSource object to a different position in the DataSources collection. |
|
Updates the DataSource object. |
Property |
Description |
---|---|
Returns the Transformer Application object. |
|
Sets or returns the description of the DataSource object. |
|
Sets or returns whether categories are generated for the data source. |
|
Sets or returns when a data source is referenced by a model. |
|
Returns whether columns in the data source match the underlying data. |
|
Sets or returns whether category generation is optimized for speed. |
|
Sets or returns the unique name for the data source. |
|
Returns the parent object. |
|
Sets or returns whether data is processed locally or on a server. |
|
Sets or returns whether Transformer searches a data source to find the current period date. |
|
Sets or returns the type of data file a data source uses. |
|
Returns the type of the underlying data source the DataSource object is currently referencing. |
Examples
objDataSource = objModel.DataSources.Add(xtrObjectType.trFlatFileDataSource)