Add(Value: LocaleCodeID): IMetabaseObjectName;
Value. Language.
The Add method adds an object name for a specified language.
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:
Related work items
Requirement 87503