Home > SI Documentation (v20) > Knowledge Base > Report is using dtr:PhaseItemSummary as a Datasource

Report is using dtr:PhaseItemSummary as a Datasource

Overview

 

If you have a customized Phase Item Summary subreport created prior to v20, you will get the following message when running the primary report (likely a Proposal-style or Line Item Detail-style report), with a convenient link to this help page:

 

warning when running phaseitemsummary report.png

 

This is due to a change in v20 where Phases were replaced with Labor Types for assigning labor to Products. This subreport is coded to report on Phase data and you will likely want to update the report to use Labor Type data.

Resolution

 

There are two subreports affected by this change from Phases to Labor Types: Phase Item Summary, and Advanced Project Summary Detail. Instructions for both follow.

 

Note: This must be done in SI v20.

Phase Item Summary

 

This subreport is used on Proposal-style and Line Item Detail-style reports when you have the following parameter ticked:

 

show labor by phase in summary parameter.png

 

Note: The screen shot above is pre-v20 as this has now been renamed to "Show labor by labor type in the summary".

 

  1. In the Standard Report Designer, open your customized version of the Phase Item Summary report.
  2. Click the database icon in the "Detail1" section of the report, this will open the Report Data Source window:

 

detail1 section.png

 

  1. Replace the existing path in the the Recordset Pattern field with the following path and then click OK: //dtr:LaborTypes/dtr:LaborType

 

report data source.png

 

  1. Click the "phaseItemSummaryGroupHeader" section header and change the Data Source from dtr:PhaseOrder to dtr:Order in the Properties window:

 

group header.png

 

 

  1. Click to select the txtAggLaborPrice textbox, then set the following values for the following properties:

 

SummaryGroup = phaseItemSummaryGroupHeader

SummaryType = Sub Total

 

aggregated labor price field.jpg

 

  1. Click the Script tab at the bottom of Standard Report Designer interface:

 

script tab.png

 

 

  1. Replace the phaseItemSummaryGroupHeader_Format event script with the script in this attachment.

 

phaseitemsummary format.png

 

  1. Replace the ActiveReport_ReportStart event script with the script in this attachment.

 

reportstart.png

 

  1. Replace the phaseItemSummaryGroupHeader_BeforePrint event script with the script in this attachment.

 

phaseitemsummary before print.png

 

  1. Publish the report.

Advanced Project Summary Detail

 

If you have customized the Advanced Project Summary Detail report prior to v20 then it will also need to be updated if you want this to work for Labor Types vs. Phases. This subreport is used on Proposal-style and Line Item Detail-style reports when the following Report Setting is set to "Yes":

 

display optional subtotal.png

 

  1. In the Standard Report Designer, open your customized version of the Advanced Project Summary Detail report.
  2. Click the Script tab at the bottom of Standard Report Designer interface:

 

grplabordetail format.png

 

  1. Replace the grpLaborDetail_Format event script with the script in this attachment.
  2. Publish your report.
Last modified

Tags

Classifications

This page has no classifications.