IEaxAnalyzerCore.Resources

Fore Syntax

Resources: IResourceObject;

Fore.NET Syntax

Resources: Prognoz.Platform.Interop.Io.IResourceObject;

Description

The Resources property determines the Resource object that is used to store translations of the express report title.

Comments

The property is relevant if the express report title is multilingual, that is, if IEaxAnalyzer.SupportMultiLanguage = True.

Fore Example

Executing the example requires that the repository contains an express report with the OBJ_EAX identifier, and the Resource object with the EAX_RES identifier.

Add links to the Metabase, Express, and Io system assemblies.

Sub UserPr;
Var
    mb: IMetabase;
    resource: IResourceObject;
    repObj: IMetabaseObject;
    report: IEaxAnalyzer;
Begin
    mb := MetabaseClass.Active;
    resource := mb.ItemById("EAX_RES").Bind As IResourceObject;
    repObj := mb.ItemById("OBJ_EAX").Edit;
    report := repObj As IEaxAnalyzer;
    report.Resources := resource;
    report.SupportMultiLanguage := True;
    repObj.Save;
End Sub UserPr;

Example execution result: title of the OBJ_EAX express report is converted to multilingual, the Resource object with the EAX_RES identifier is used to store translations.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.ForeIO;

Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    resource: IResourceObject;
    repObj: IMetabaseObject;
    report: IEaxAnalyzer;
Begin
    mb := Params.Metabase;
    resource := mb.ItemById["EAX_RES"].Bind() As IResourceObject;
    repObj := mb.ItemById["OBJ_EAX"].Edit();
    report := repObj As IEaxAnalyzer;
    report.Resources := resource;
    report.SupportMultiLanguage := True;
    repObj.Save();
End Sub;

See also:

IEaxAnalyzeCore