You can activate report support on the Data tab. If you do so, the data will be read from ARIS by report right before the dialog is displayed and will then be displayed in the dialog when the task is opened for editing. You can dynamically change the displayed name (label) of all elements using a report. If the task is displayed read-only, the report is not executed.
If you want to use a single report for all dialog elements, you must use the element identifiers to pass on the values for the individual dialog elements. In this case, you must activate the report support for one single element only (see example below).
Report support can be enabled for the following elements. If an element can process multiple values, use a comma-separated list in the report.
If you want to use a separator other than a comma, specify the separator in the report script code. Make sure that the separator specified is not used in the values of the list.
Example
If you want to use #~# as a separator, add the following code to the report script:
var separator = "#~#";
Context.setProperty("separator", separator);
Click the relevant element to display the details.
Example
The graphic shows a dialog with a User element, a Date and time element, and an Input table element. The identifier of the User element and the report ID are highlighted:
If you want to use a single report to pass data for the field shown above, the report must contain the following lines (the values are comma-separated by default):
Context.setProperty("8e1cc1c0-6ea5-11e6-1af0-5048494f4e43.selection","johndoe");
Context.setProperty("5e1c1cc=-4ea6-16e6-1af6-6068464f4e46.value", "2018-06-03");
Context.setProperty("5e1c1cc=-4ea6-16e6-1af6-6068464f4e46.column1", "value1, value2");
If you want to use #~# as a separator, add the following code:
var separator = "#~#";
Context.setProperty("separator", separator);
Context.setProperty("8e1cc1c0-6ea5-11e6-1af0-5048494f4e43.selection"#~#"johndoe");
Context.setProperty("5e1c1cc=-4ea6-16e6-1af6-6068464f4e46.value"#~# "2018-06-03");
Context.setProperty("5e1c1cc=-4ea6-16e6-1af6-6068464f4e46.column1"#~# "value1#~# value2");