Id: String;
The Id property determines the object identifier.
Executing the example requires that the repository contains an object with the OBJ_TEST identifier.
Add links to the Metabase system assembly.
Sub UserProc;
Var
Mb: IMetabase;
MDesc: IMetabaseObjectDescriptor;
Begin
Mb := MetabaseClass.Active;
// Change object metadata
MDesc := Mb.ItemById("OBJ_TEST");
MDesc := MDesc.EditDescriptor;
MDesc.Id := Mb.GenerateId("OBJ_TEST");
MDesc.Name := MDesc.Name + "(Outdated)";
// Save changes
MDesc.SaveDescriptor;
Debug.WriteLine("New identifier: " + MDesc.Id);
Debug.WriteLine("New name: " + MDesc.Name);
End Sub UserProc;
After executing the example an identifier and name of the specified object are changed.
See also: