Click Navigation in the bar panel if the Navigation bar is not activated yet.
In the Explorer tree, double-click the Evaluations folder.
Double-click the Reports folder. The report categories are displayed.
Right-click the category to which you want to assign the report script or create a new category.
Click New > Report. The Script Wizard opens.
For the first example specify the Name and Description in the required languages, for example, the name Import all Alfabet objects and the description Imports all objects from Alfabet as defined in the interface configuration into selected database groups.
Click Next.
Select the Group as context for the report to be started, and click Next.
Deactivate the Generate output file check box and navigate to the Restrict access page.
Restrict the access for the report to be executed.
Click Finish. Script Editor opens.
Write the code, for example:
var alfaIntegration = Context.getComponent("AlfabetIntegration");
var result = alfaIntegration.doImport(ArisData.getSelectedGroups()[0], null)
Save the script and write the second report, for example, Synchronize Alfabet objects:
This report will synchronize already imported Alfabet objects.
Select Database as context for the report to be started
Use this code as example:
var alfaIntegration = Context.getComponent("AlfabetIntegration");v
var result = alfaIntegration.doSynchronize(ArisData.getActiveDatabase(), 3);