IPivot.Selection

Fore Syntax

Selection: IDimSelectionSet;

Fore.NET Syntax

Selection: Prognoz.Platform.Interop.Dimensions.IDimSelectionSet;

Description

The Selection property returns the selection, according to which express report data table is built up.

Comments

This property returns selection of all dimensions of all express report data sources. The obtained selection can be changed. All changes are passed to data sources, after which they are rebuilt. The data table is also rebuilt. If it is required to make multiple changes in selections, it is recommended to make all changes between calling the IPivot.BeginSelectionUpdate and IPivot.EndSelectionUpdate methods. This enables the user to avoid constant rebuilding of data, which causes constant data extraction.

If a data source contains the dimensions controlled by other dimensions, they are worked in two stages:

  1. Set selection by the dimensions that control some other dimension between calling the IPivot.BeginSelectionUpdate and IPivot.EndSelectionUpdate methods. On calling the IPivot.EndSelectionUpdate method the controlled dimensions are rebuilt.

  2. Get refreshed selection via the IPivot.Selection property.

  3. Set selection in the rebuilt controlled dimensions between calling the IPivot.BeginSelectionUpdate and IPivot.EndSelectionUpdate methods.

IMPORTANT. Before calling the IPivot.BeginSelectionUpdate method and making some changes in selection, all changes are applied on calling the IPivot.EndSelectionUpdate method. To work with actual selection after calling IPivot.EndSelectionUpdate it must be obtained again by means of the Selection property.

NOTE. Foresight Analytics Platform enables the user to set selection constraint.

Fore and Fore.NET Examples

The example of use is given in description of the IPivot.BeginSelectionUpdate method.

See also:

IPivot