Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
72:custom_reports_accessing_data_reading_msproject [2019/02/27 19:46]
ext-bkkr
72:custom_reports_accessing_data_reading_msproject [2019/10/04 07:02] (current)
Christian Geupel
Line 16: Line 16:
 |work|String| |work|String|
  
-4. Include a Current metric like [[[Software Project:​metric]Dashboard|]]+4. Include a Current metric like [[:software_project:​metric_dashboard|metric]Dashboard]]
  
 5. Click on the Data Set on **Preview Results** 5. Click on the Data Set on **Preview Results**
Line 45: Line 45:
 var ArtifactName = "​Project Metric Example";​ var ArtifactName = "​Project Metric Example";​
 var ArtifactInstanceName = "​Project_Metric_example.mpp";​ var ArtifactInstanceName = "​Project_Metric_example.mpp";​
-var process = +var process = stages.getCurrentProcess(); 
- pkit.getCurrentProject().getEntities("​containsProcess@SYSTEM"​); +var artifacts = process[0].getEntities("​containsArtifact@SYSTEM"​);​ 
-if (process.length !=0 ) { +for each (artifact in artifacts) {
- var artifacts = process[0].getEntities("​containsArtifact@SYSTEM"​);​ +
- for each (artifact in artifacts) {+
  if (artifact.getProperty("​DisplayName"​) == ArtifactName) {  if (artifact.getProperty("​DisplayName"​) == ArtifactName) {
  var artifacts_instances =  var artifacts_instances =
Line 59: Line 57:
  ​dumpValues(artifacts_instance.getProperty("​PhysicalName"​),​  ​dumpValues(artifacts_instance.getProperty("​PhysicalName"​),​
  ​filestream);​  ​filestream);​
- } 
  }  }
  }  }