IAdhocDsoDimension.SelectionProperty

Fore Syntax

SelectionProperty: Boolean;

Fore.NET Syntax

None;

Description

The SelectionProperty property determines whether to save selection schema groups applied to the dimension.

Comments

Available values:

Fore Example

Executing the example requires that the repository contains a dashboard with the ADHOC_SYNC identifier. Synchronization of dimensions must be set up in this dashboard.

Sub UserProc;
Var
    mb: IMetabase;
    Obj: IMetabaseObject;
    Adhoc: IAdhocReport;
    Sync: IAdhocSynchronization;
    Dims: IAdhocDimsSynchronization;
    DimIndex: IAdhocDimSyncIndex;
    i, j: Integer;
    SyncDims: IAdhocSyncDimensions;
    SyncItem: IAdhocDimSyncItem;
    DsoDim: IAdhocDsoDimension;
Begin
    mb := MetabaseClass.Active;
    // Get dashboard
    Obj := mb.ItemById("ADHOC_SYNC").Edit;
    Adhoc := Obj As IAdhocReport;
    // Get data about synchronization of dimensions
    Sync := Adhoc.Synchronization;
    Dims := Sync.Dimensions;
    // Set up behavior of groups and selection schemas applied to dimensions
    For i := 0 To Dims.Count - 1 Do
        DimIndex := Dims.Item(i);
        DimIndex.SelectionProperty := False;
        SyncDims := DimIndex.Dimensions;
        For j := 0 To SyncDims.Count - 1 Do
            SyncItem := SyncDims.Item(J);
            DsoDim := SyncItem.Dimension;
            DsoDim.SelectionProperty := False;
        End For;
    End For;
    Obj.Save;
End Sub UserProc;

After executing the example groups and selection schemas applied to data sources dimensions are not saved to the ADHOC_SYNC dashboard.

See also:

IAdhocDsoDimension