Resources: IResourceObject;
Resources: Prognoz.Platform.Interop.Io.IResourceObject;
The Resources property determines the Resource object used to store translations of the express report title.
This property is relevant if the express report title is multilingual: that is, if IEaxAnalyzer.SupportMultiLanguage = True.
Executing the example requires that the repository contains an express report with the identifier OBJ_EAX, and the Resource object with the identifier EAX_RES.
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 identifier EAX_RES is used to store translations.
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: