Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
72:custom_reports_accessing_data_reading_process_subprojects [2019/02/27 20:14] – created ext-bkkr | 72:custom_reports_accessing_data_reading_process_subprojects [2019/03/06 18:04] – ext-bkkr | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Reading Subprojects ====== | ====== Reading Subprojects ====== | ||
+ | This example shows how to collect data from all projects (or all subprojects). | ||
+ | |||
+ | 1. Create a report with a Stages Data Source and a Data Set. | ||
+ | |||
+ | 2. Copy the Data Set script from the example into your Data Set. | ||
+ | |||
+ | < | ||
+ | /* Iterate through all projects */ | ||
+ | getChilds(pkit.getRootProject()); | ||
+ | /* Iterate through all subprojects */ | ||
+ | // | ||
+ | function getChilds(project) | ||
+ | { | ||
+ | var myprojects = | ||
+ | | ||
+ | for each (myproject in myprojects) | ||
+ | { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | function saveColumn(project) | ||
+ | { | ||
+ | var metamodel = project.getEntities(" | ||
+ | if (metamodel.length> | ||
+ | /* do seomthing */ | ||
+ | } | ||
+ | } | ||
+ | </ | ||