ICubeMetaUpdateDictionaryRemapings.Item

Syntax

Item(Index: Integer): ICubeMetaUpdateDictionaryRemaping;

Parameters

Index - correspondence index in the collection.

Description

The Item property returns the correspondence from the collection by its index.

Example

Executing the example requires the C:\FC_COPY.XML file that contains parameters of time series database copying as XML code. Parameters must be stored in the Root section.

Sub Main;

Var

mb: IMetabase;

RubUpdateEx: ICubeMetaUpdateEx;

XmlDoc: IXMLDOMDocument3;

el: IXmlDomElement;

i: Integer;

DictRemapings: ICubeMetaUpdateDictionaryRemapings;

DictRemap: ICubeMetaUpdateDictionaryRemaping;

Begin

mb := MetabaseClass.Active;

RubUpdateEx := New CubeMetaUpdateClass.Create As ICubeMetaUpdateEx;

XmlDoc := New DOMDocument60.Create;

XmlDoc.load("C:\FC_COPY.XML");

el := XmlDoc.selectSingleNode("root") As IXmlDomElement;

RubUpdateEx.LoadFromXml(el, mb);

DictRemapings := RubUpdateEx.DictionaryRemapings;

For i := 0 To DictRemapings.Count - 1 Do

DictRemap := DictRemapings.Item(i);

Debug.WriteLine(Object source: + DictRemap.SourceId);

Debug.WriteLine(Object consumer: + DictRemap.Target.Id);

Debug.WriteLine("-----------");

End For;

End Sub Main;

After executing the example parameters of time series database copying saved as XML code are loaded from the C:\FC_COPY.XML file. The console window displays identifiers of objects of the copied time series database and identifiers of corresponding objects of the database copy.

See also:

ICubeMetaUpdateDictionaryRemapings