AddedElementsSelection(Slice: IEaxDataAreaSlice): IDimSelectionSet;
Slice. Analytical data area slice.
The AddedElementsSelection property returns selection of elements added manually by user.
To add element from facts dimension to original hierarchy, use IEaxDataAreaHierarchies.AddExistingElement.
Executing the example requires that the repository contains an express report with the EXPRESS identifier containing table. Selection of one of dimensions must contains elements added manually by the user.
Add links to the Dimensions, Express, Metabase system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Eax: IEaxAnalyzer;
DA: IEaxDataArea;
SelSet: IDimSelectionSet;
i: Integer;
Begin
MB := MetabaseClass.Active;
Eax := MB.ItemById("EXPRESS").Bind As IEaxAnalyzer;
DA := Eax.DataArea;
SelSet := DA.Hierarchies.AddedElementsSelection(DA.Slices.Item(0));
For i := 0 To SelSet.Count - 1 Do
Debug.WriteLine("Elements added in selection - " + SelSet.Item(i).ToString("", ", ", False));
End For;
End Sub UserProc;
After executing the example the console displays selection elements which were added manually by user.
See also: