IMetabaseObjectDescriptor.IsShortcut

Syntax

IsShortcut: Boolean;

Description

The IsShortcut property returns whether this object is a shortcut to other repository object.

The property returns True if this object is a shortcut for another repository object.

NOTE. If the object is a shortcut for object from another repository, this property returns the False value, the IsLink property should also be used for check.

Example

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

Sub Main;

Var

MB: IMetabase;

MDesc: IMetabaseObjectDescriptor;

Begin

MB := MetabaseClass.Active;

MDesc := MB.ItemById("Shortcut_Report_1");

If MDesc.IsShortcut Then

Debug.WriteLine(MDesc.Shortcut.Id);

End If;

End Sub Main;

After executing this example, if the Shortcut_Report_1 object is a shortcut, the identifier of the object to which this shortcut refers, is displayed in the development environment console.

See also:

IMetabaseObjectDescriptor