IPrxSlice.DataSource

Syntax

DataSource: IPrxDataSource;

Description

The DataSource property determines a data source for a slice.

Comments

Changing a data slice has the same effect as its move. Slices can be moved only between source cubes. When slices are moved, they remain connected to report objects (charts, maps, data areas).

Cubes can have different structures. If the dimension set is the same, all settings of the moved slice are saved (the order and label). If the dimension set differs, the matching dimensions are located with the saved order and label, and the rest is located in the Fixed group with no label.

Example

The following example assumes that there is the Report object with the IPrxReport type.

Sub User;

Var

Report: IPrxReport;

DS: IPrxDataSources;

Slices: IPrxSlices;

Slice: IPrxSlice;

Begin

DS := Report.DataSources;

Slices := DS.Item(0).Slices;

Slice := Slices.Item(0);

Slice.DataSource := DS.Item(1);

End Sub User;

After executing the example data source of the selected slice is changed.

See also:

IPrxSlice