IAdhocDimSyncItem.Direction

Fore Syntax

Direction: AdhocDimSyncItemDirection;

Fore.NET Syntax

None;

Description

The Direction property determines a connection type of synchronized dimension.

Comments

By default, all dimensions use two-way connection type, that is, the Direction property is set to AdhocDimSyncItemDirection.Bidirectional.

Fore Example

Executing the example requires that the repository contains a dashboard with the ADHOC_SYNCDEM identifier. This dashboard should contain several synchronized dimensions.

Add links to the Adhoc, Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    Adhoc: IAdhocReport;
    DimsSync: IAdhocDimsSynchronization;
    i: Integer;
    Index: IAdhocDimSyncIndex;
    Item: IAdhocDimSyncItem;
Begin
    // Get current repository
    mb := MetabaseClass.Active;
    // Get dashboard
    Adhoc := mb.ItemById("ADHOC_SYNCDEM").Edit As IAdhocReport;
    // Get synchronized dimensions
    DimsSync := Adhoc.Synchronization.Dimensions;
    // Execute iterations by all synchronization indexes
    // and specify that the first dimension in each index is one-way
    For i := 0 To DimsSync.Count - 1 Do
        Index := DimsSync.Item(i);
        Item := Index.Dimensions.Item(1);
        Item.IsGeneral := False;
    End For;
    // Save changes
    (Adhoc As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the connection type for the first dimension in each synchronization index in the dashboard is changed for one-way.

See also:

IAdhocDimSyncItem