ICubeMetaUpdateAttributeRemappings.FindByKey

Syntax

FindByKey(Key: Integer): ICubeMetaUpdateAttributeRemapping;

Parameters

Key. Key of factors attribute of the database copy.

Description

The FindByKey method finds a correspondence in the collection by the key of the factors attribute of the database copy.

Example

Executing the example requires that the repository contains an object with the Cube_Meta_Upd identifier that contains settings for copying a time series database.

Sub Main;

Var

mb: IMetabase;

RubUpdateEx: ICubeMetaUpdateEx;

AttrRemapping: ICubeMetaUpdateAttributeRemappings;

AttrR: ICubeMetaUpdateAttributeRemapping;

Begin

mb := MetabaseClass.Active;

RubUpdateEx := Mb.ItemById("Cube_Meta_Upd").Bind As ICubeMetaUpdateEx;

AttrRemapping := RubUpdateEx.MetafactsAttributeRemappings;

AttrR := AttrRemapping.FindByKey(5);

If AttrR <> Null Then

Debug.WriteLine(AttrR.Name);

End If;

End Sub Main;

After executing the example the object that contains settings for copying the time series database is loaded. The system finds a correspondence for the database copy factors attribute with the 5 key. If the correspondence is found, the console window displays the name of this attribute.

See also:

ICubeMetaUpdateAttributeRemappings