Express > Express Assembly Interfaces > IEaxDataAreaHierarchies > IEaxDataAreaHierarchies.AddedElementsSelection
AddedElementsSelection(Slice: IEaxDataAreaSlice): IDimSelectionSet;
Slice. Analytical data area slice.
The AddedElementsSelection property returns selection of elements added manually by the user.
To add an element from fact dimension to original hierarchy, use IEaxDataAreaHierarchies.AddExistingElement.
Executing the example requires that the repository contains an express report with the EXPRESS identifier containing a table. Selection of one of dimensions must contain 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 to 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 the user.
See also: