IMetabaseObjectName.Name

Syntax

Name: String;

Name: string;

Description

The Name property determines the name of the object.

Example

In this example there supposed to be an object with ID Object that has the name for the Spanish language (Argentina) in repository.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    Obj: IMetabaseObjectDescriptor;
    NamesL: IMetabaseObjectNames;
    NameLocale: IMetabaseObjectName;
Begin
    Obj := MetabaseClass.Active.ItemById("Object").EditDescriptor;
    NamesL := Obj.Names;
    NameLocale := NamesL.FindByLocale(LocaleCodeID.Spanish_Argentina);
    NameLocale.Name := "Escenario";
    Obj.SaveDescriptor
End Sub UserProc;
Imports Prognoz.Platform.Interop.ForeSystem;
 
Public Shared Sub Main(Params: StartParams);
Var
    Obj: IMetabaseObjectDescriptor;
    NamesL: IMetabaseObjectNames;
    NameLocale: IMetabaseObjectName;
Begin
    Obj := Params.Metabase.ItemById[
"Object"].EditDescriptor();
    NamesL := Obj.Names;
    NameLocale := NamesL.FindByLocale(LocaleCodeID.lcidSpanish_Argentina);
    NameLocale.Name := 
"Escenario";
    Obj.SaveDescriptor();
End Sub;

The name for the Spanish language is changed for the object after executing this example.

See also:

IMetabaseObjectName