Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
72:custom_reports_accessing_data_reading_process_attributes [2019/02/27 20:13] – created ext-bkkr | 72:custom_reports_accessing_data_reading_process_attributes [2019/03/06 17:58] – ext-bkkr | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Reading Attributes ====== | ====== Reading Attributes ====== | ||
+ | Stages allows to configure attributes in the metamodel. | ||
+ | |||
+ | Assume that the following attribute types are configured in your PKitConfig.xml file: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | and your metamodel configuration contains a process attribute like: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 1. Create a Report with a Stages Data Source and a Data Set | ||
+ | |||
+ | 2. Create a result column Attribute | ||
+ | |||
+ | 3. Copy the Data Set script from the example into your Data Set | ||
+ | |||
+ | 4. Set your current Metric to an existing metric in a Stages project | ||
+ | |||
+ | This example shows: | ||
+ | |||
+ | < | ||
+ | var process = | ||
+ | | ||
+ | if (process.length !=0 ) { | ||
+ | var attribute_values = process[0] | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | </ | ||