ICubeMetaUpdateAttributeRemappings.FindById

Syntax

FindById(Id: String): ICubeMetaUpdateAttributeRemapping;

Parameters

Id.Identifier of the factors attribute of database copy.

Description

The FindById method finds a correspondence in the collection by identifier of the factors attribute of 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.FindById("UNIT");

If AttrR <> Null Then

Debug.WriteLine(AttrR.Key);

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 factors attribute of the database copy with the UNITS identifier. If the correspondence is found, the key of this attribute is displayed.

See also:

ICubeMetaUpdateAttributeRemapping