Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
72:custom_reports_getting_started_creating_reports [2019/02/07 14:31] – created ext-bkkr | 72:custom_reports_getting_started_creating_reports [2024/02/15 00:00] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Creating Stages BIRT Reports: A Basic Example ====== | ====== Creating Stages BIRT Reports: A Basic Example ====== | ||
+ | |||
+ | This section explains how to create a basic BIRT report that extracts information from Stages. | ||
+ | |||
+ | ==== Create a Report ==== | ||
+ | |||
+ | - The BIRT RCP Designer is started by executing the birt.exe | ||
+ | - Select **File –> New –> New Report **from the drop-down menu | ||
+ | - Type the name for the report | ||
+ | - Select the path where the report file will be stored, and click **Next** | ||
+ | - Select **Blank report**, and click **Finish** | ||
+ | |||
+ | The new blank report will be opened on the right side. | ||
+ | |||
+ | ==== Create a Stages Data Source ==== | ||
+ | |||
+ | - Navigate to the **Outline View** | ||
+ | - Select **Stages Data Source**. Enter a name for the data source. | ||
+ | - Click **Next**. | ||
+ | - If you do not use the metrics.xml you need to specify the Stages server URL and enter a Stages username and password and click **Finish**. | ||
+ | - If you use the metrics.xml, | ||
+ | - Insert the [[: | ||
+ | |||
+ | ==== Create a Data Set ==== | ||
+ | |||
+ | - Navigate to the **Outline View** | ||
+ | - Select a name for the Data Set, and click **Next**. | ||
+ | - Enter the column names and data types | ||
+ | - Documentnamewith type string | ||
+ | - Statewith type String | ||
+ | - Click **Next**. | ||
+ | - Click **Edit Script** | ||
+ | - Enter the following script into the editor | ||
+ | |||
+ | < | ||
+ | var artifacts = | ||
+ | pkit.getCurrentProject().getEntities(" | ||
+ | [0].getEntities(" | ||
+ | for (i = 0; i < | ||
+ | var artifacts_instances = | ||
+ | | ||
+ | for (j = 0; j < | ||
+ | var artifacts_revisions = | ||
+ | | ||
+ | if (artifacts_revisions.length == 0) { | ||
+ | dataset.setColumnValue(" | ||
+ | } else { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | To finish the editing of the script, click **OK**. | ||
+ | |||
+ | Enter a //Workspace Path //in the text input field. The //Workspace Path// | ||
+ | - //Note: The Workspace Path value is needed for the preview, if the script contains the statement // | ||
+ | - Click **Finish** | ||