DataSource Object

The DataSource object defines a generic data source.

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

Delete Method

Deletes the DataSource object.

Move Method

Moves the DataSource object to a different position in the DataSources collection.

Update Method

Updates the DataSource object.

Property

Description

Application Property

Returns the Transformer Application object.

Description Property

Sets or returns the description of the DataSource object.

GenerateCategories Property

Sets or returns whether categories are generated for the data source.

GeneratePowerCube Property

Sets or returns when a data source is referenced by a model.

IsAnyColumnMismatched Property

Returns whether columns in the data source match the underlying data.

MaximizeSpeed Property

Sets or returns whether category generation is optimized for speed.

Name Property

Sets or returns the unique name for the data source.

Parent Property

Returns the parent object.

ServerQuery Property

Sets or returns whether data is processed locally or on a server.

SetsCurrentPeriod Property

Sets or returns whether Transformer searches a data source to find the current period date.

SourceType Property

Sets or returns the type of data file a data source uses.

Type Property

Returns the type of the underlying data source the DataSource object is currently referencing.

Examples

objDataSource = objModel.DataSources.Add(xtrObjectType.trFlatFileDataSource)