IMetabaseObjectDescriptor.LoadAllChildrenScreenshots

Syntax

LoadAllChildrenScreenshots;

Description

The LoadAllChildrenScreenshots method caches images used on preview for all child objects.

Comments

After executing the method the images used on preview are placed to cache for all child objects that support preview. Preview is presenting repository objects as extra large icons. Preview as an image of the first page is available for reports created by the following tools: DashboardsAnalytical Queries (OLAP)Reports and Time Series Analysis.

The method is relevant for use if the IMetabase.IsScreenshotSupported property returns True.

Example

Executing the example requires that the repository contains a business application with the DBA_APP identifier.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MDesc: IMetabaseObjectDescriptor;
Begin
    MB := MetabaseClass.Active;
    If MB.IsScreenshotSupported Then
        MDesc := MB.ItemById("DBA_APP");
        MDesc.LoadAllChildrenScreenshots;
    End If;
End Sub UserProc;

After executing the example, all child objects that support preview are cached for the business application.

See also:

IMetabaseObjectDescriptor