IMetabaseObjectDescriptor.SaveDescriptor

Syntax

SaveDescriptor;

Description

The SaveDescriptor method saves the changes of the repository object description.

Example

Executing the example requires that the repository contains an object with the QUERY_1 identifier.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MDesc: IMetabaseObjectDescriptor;
Begin
    MB := MetabaseClass.Active;
    MDesc := MB.ItemById(
"QUERY_1");
    MDesc := MDesc.EditDescriptor;
    MDesc.Description := 
"Outdated object version " + MDesc.Id;
    MDesc.Id := MDesc.Id + 
"_Old";
    MDesc.Name := MDesc.Name + 
" (Outdated version)";
    MDesc.SaveDescriptor;
End Sub UserProc;

After executing the example the description of the specified object is changed.

See also:

IMetabaseObjectDescriptor

IMetabaseObjectDescriptor.EditDescriptor