IAdhocReport.Resources

Syntax

Resources: IResourceObject;

Description

The Resources property determines the Resource object, which is used to store dashboard translations.

Comments

The property is relevant if a dashboard is multilingual, that is, IAdhocReport.SupportMultyLanguage = True.

Example

Executing the example requires that the repository contains a dashboard with the OBJ_ADHOC identifier and the Resources object with the ADHOC_RES identifier.

Add links to Metabase, Adhoc, Io system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    resource: IResourceObject;
    repObj: IMetabaseObject;
    report: IAdhocReport;
Begin
    mb := MetabaseClass.Active;
    resource := mb.ItemById("ADHOC_RES").Bind As IResourceObject;
    repObj := mb.ItemById("OBJ_ADHOC").Edit;
    report := repObj As IAdhocReport;
    report.Resources := resource;
    report.SupportMultyLanguage := True;
    If report.IsDirty Then
        repObj.Save;
    End If;
End Sub UserProc;

Example execution result: the OBJ_ADHOC dashboard is transformed into a multilingual one, the Resources object with the ADHOC_RES identifier is used to store translations.

See also:

IAdhocReport