Owner(Row: Integer): Variant;
Row. Index of child element row.
The Owner property determines primary key of the owner element for the element in the specified row.
Executing the example requires a standard cube with the CUBE_1 identifier.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Cube: IStandardCube;
CustDim: ICustomDimension;
DimElems: ICustomDimElements;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("CUBE_1").Edit;
Cube := MObj As IStandardCube;
CustDim := Cube.FactDimension.Dimension As ICustomDimension;
DimElems := CustDim.Elements;
DimElems.Owner(1) := DimElems.AttributeValue(0, 0);
MObj.Save;
End Sub Main;
After executing the example the element in the second row becomes a child of the element in the first row.
See also: