IMetabaseObjectNames.Name

Syntax

Name(Value: LocaleCodeID): String;

Name[Value: Prognoz.Platform.Interop.ForeSystem.LocaleCodeID]: string;

Parameters

Value. Language.

Description

The Name property determines an object name for the specified language. If there is not a name for the specified language, it will be created.

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.Name(LocaleCodeId.German_Germany) := "Bühne";
    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.Name[LocaleCodeId.lcidGerman_Germany] := "Bühne";
    Obj.SaveDescriptor();
End Sub;

After executing this example an object name for the German language is added.

See also:

IMetabaseObjectNames

Related work items

Requirement 87503