IMetabaseObjectNames.Add

Syntax

Add(Value: LocaleCodeID): IMetabaseObjectName;

Add(Value: Prognoz.Platform.Interop.ForeSystem.LocaleCodeID): Prognoz.Platform.Interop.IMetabase.IMetabaseObjectName;

Parameters

Value. Language.

Description

The Add method adds an object name for a specified language.

Example

This example requires that the repository contains an object with the OBJECT identifier.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    Obj: IMetabaseObjectDescriptor;
    NamesL : IMetabaseObjectNames;
Begin
    MB := MetabaseClass.Active;
    Obj := MB.ItemById("Object").EditDescriptor;
    NamesL := Obj.Names;
    NamesL.Add(LocaleCodeID.Spanish_Argentina).Name := "Escenario";
    Obj.SaveDescriptor;
End Sub UserProc;

Imports Prognoz.Platform.Interop.ForeSystem;

 

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Obj: IMetabaseObjectDescriptor;
    NamesL : IMetabaseObjectNames;
Begin
    MB := Params.Metabase;
    Obj := MB.ItemById["Object"].EditDescriptor();
    NamesL := Obj.Names;
    NamesL.Add(LocaleCodeID.lcidSpanish_Argentina).Name := "Escenario";
    Obj.SaveDescriptor();
End Sub;

After executing this example the name for the Spanish language (Argentina) is added.

See also:

IMetabaseObjectNames

Related work items

Requirement 87503