After the first two articles explained the difference between the use of the WYSIWYG editor and ARIS scripting,  as well as the structure of report script templates, I now present the first tutorial on how to create reports via the WYSIWYG editor using a simple report to output content of a group.

How to iterate over a group

In this tutorial, you want to iterate over a set of groups and output the name of the models contained in those groups. First, you select “Group” as the context while creating the report. This means that the report can be run for a selected list of groups.

To output all models of the selected groups, you define a query. This query is a subordinate query that searches through the selected groups.

Select the section into which you want to insert a query.

Right-click and select “Insert/Query”. You can set queries for both the repetition area and the static area of each section.

To output all models of the selected groups with their name, you need a query for therepetition area. Enable the "Has repetitions" option.

Under 'Available data', select 'Model list (filterable by type)' and click on the 'Add to repetition' button. You can insert only one query into the repetition area.

Click on the "Next" button, select the 'Selected groups.Model list (filterable by type)' query and click on "Finish".

The query will be inserted into the selected area.

To output the relevant names, insert the corresponding data fields.

The data field in the 'Selected groups.Model list (filterable by type)'repetion area of the subordinate query should output all model names and their associated group name.

Select 'Name' in the 'Select data' field, click on the 'Next' button and then on 'Finish'. Now the data field shows the text '{Selected groups.Model list (filterable by type).Name}'. To specify the output, the prefix 'Model name:' is added in front of '{Selected groups.Model list (filterable by type).Name}'. To output the name of the group another data field is required. The procedure is the same as the one described above. Here, we insert a data field with the path 'Group – Name'

Click on "Next" and on "Finish".

For a better output, set the second data field in brackets. Now you have finished the first tutorial.

The output of the tutorial shows all selected groups with their models. Here is a sample output:

If you have missed the first tutorials, make sure to head over to the table of contents!

 or register to reply.

Notify Moderator