Hello! This is my first post in the ARIS forums.
I am currently exploring ARIS script for reports. I have a request to consolidate several reports into one report. In my OOP experience, I would accomplish something like this by instantiating each report 'class' and then access its properties directly. Ex.:
var oReport_A = <reportObject_A>
var oReport_B = <reportObject_B>
var oReport_C = <reportObject_C>
where <reportObject_x> represents the individual report 'class' for each report I need to work with.
In Aris, I have tried this code:
var Report = Context.getComponent("Report");
var shadowCheck = Report.createExecInfo("Model_Quality/1d6f1570-f61c-11de-04b2-0050569749e7", ArisData.getSelectedModels(), Context.getSelectedLanguage());
But this returns an 'ExecInfo' object. I would like to access a 'Report' object then run the method inside it.
I realize I can use Imported files... to import the report as a reference, but all of the reports I want to import have a common method and I want to call that method exclusive to each report.
Thanks for your help!
Regards,
Rick Beddoe
Amol Patil on
Hi Rick,
The code you tried is for calling different report from one report. So the report which is being called should have one global function call.
If you import report through Imported Files, you will have to remove any global function call from those reports, and should keep the function names different. Then you can just call the functions in your code.
But i guess you are not looking for above two options. You might want to use the functions in the form of Class and methods. So here is the solution. You will need to import the reports through Imported Files
Regards,
Amol Patil