CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using...

47
CP-66: Customize Standard Costpoint Reports Using Extensibility Designer David McCallister, North Central Texas Council of Governments

Transcript of CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using...

Page 1: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

CP-66:Customize Standard Costpoint Reports Using Extensibility Designer

David McCallister,North Central Texas Council of Governments

Page 2: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

CP-66: Customize Standard CostpointReports using Extensibility Designer

David McCallisterAgency Administration Information Systems ManagerNorth Central Texas Council of Governments

Page 3: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Agenda- Components of a Standard Costpoint Report

- Required Tools

- Simple Modifications (Report only – no extensions)

- Change Labels, Column Headings, Layout & Fields

- Modify Report Title or Status Text (User Interface only)

- Modify Title on the Report

- Complex Modifications (Requires Extensibility)

- Add Additional Columns to Main CP Report

Page 4: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Components of a Standard Costpoint Report

Page 5: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Components of a Standard CP Report

• Report application

• Report parameter result set

• Report definition (and Java classes that populate the data for the report)

• Data source result set (with Select SQL)

• Report template

Page 6: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Report Application

An application is the top-level component that acts as the container to the screens inside the application. It does not contain any logic. UI and business logics are done entirely in the screens (result sets) and the java classes that supports them. You can only extend an application by changing its application name.

To view a list of all available applications in Costpoint, refer to the Apps folder of the Extensibility Designer’s Object Explorer. These applications are sorted by

application ID.

Page 7: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Report Parameter Result Set

A report parameter result set is the screen where the user selects various options to run the report. It is assigned underneath an application. In the example PPRPRRQ_PARAM is the parameter result set assigned to the Print Requisitions application.

Page 8: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Report Definition

A report definition (or report list) includes the metadata that describes a report such as title, status text, Java class action, and the data fields that feed into the report. In the Object explorer, you can find the report listed directly underneath the parameter result set.

In the example, the report definition for PPRPRRQ_PARAM is PPRPRRQ_RPT.

Page 9: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

The name and location of the original report template is specified in the ROX (template) field on the Information tab (Extensibility Console). This path is a sub path underneath the root path where report templates for all applications reside in the Costpoint server. The root path for all report templates is:

\deltek\costpoint\71\applications\birt\report\bin. The example displays the report template for Print Requisitions at:

\deltek\costpoint\71\applications\birt\report\bin\commonpp\pprprrq\pprprrq.rptdesign

Page 10: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

On the Data Sources tab, the left pane displays the data source ID and name used inside the report template. The right pane displays the ID of the data source result set which supplies the data for the report. In the following example, there is only one data source, and the ID is PPRPRRQ_DATA.

Page 11: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

The Assigned to DS Variables tab includes all fields from the data source result set that have been selected to feed into the report. In the following example, all the columns from the data source result set are selected to be on the report.

You can extend a report definition by changing the title, status text, report template, action to be run before or after and the data source columns.

Page 12: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Data Source Result Set

The data source result set acts as a data source for the report. It is not displayed directly in the Object Explorer under the respective application branch. Take note of the ID of the data source result set in the Report Definition and find it using the Top Level Filter.

Page 13: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

At the top of the RS list tab, there is usually a SQL Select statement defining where the data for the report will originate.

Page 14: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

You can extend the data source result set by adding additional columns to the SQL select statement in the lower half of the SQL select panel. In this example, the name of the Approver from RQ_HDR_APPRVL is selected and joined with EMPL to display LAST_FIRST_NAME on the printed requisition.

Page 15: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Report Template

All report template files have the .rptdesignextension name. Copy the existing Costpoint template, save with a new name, then modify with the Eclipse IDE. The new template is placed in the custom folder (specified in the extended report definition) under the BIRT report main folder.

Page 16: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Required Tools

Page 17: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Required Tools

Costpoint 7.1 & BIRT Plug-ins

Extensibility License from Deltek –allows Costpoint customization

Eclipse 4.6.0 – tool to modify canned reports in Costpoint

Page 18: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Eclipse

• Eclipse 4.6.0

- 32 or 64-bit version available

- Use matching 32 or 64-bit JDK

• Open Source software that allows changes to canned CP reports• The Deltek Costpoint BIRT Plug-in (below) is necessary to edit any Costpoint reports

• DeltekCostpoint711BIRTInstaller_Build05.exe (DSM)

- Installs Deltek supplied plugins that allow Eclipse IDE to work with Costpoint

- com.deltek.enterprise.system.reporting.client.birt.oda.designer_1.0.0.jar

- com.deltek.enterprise.system.reporting.client.birt.oda.runtime_1.0.0.jar

18

Page 19: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Simple Modifications

Page 20: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Modify Report Only – No Extensions

Requires Eclipse

Does NOT require Extensibility License

• Adjust Page Size

• Show header on first footer on last page

• Add/Change Border

• Adjust Page Orientation

• Adjust Margins

• Adjust Font Size, Color, Location, Alignment

20

Page 21: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

• Adjust Page Size

• Show Header/Footer on First/Last Page

21

Page 22: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

• Modify the Border

• Adjust Page Orientation (Auto/Landscape/Portrait)

22

Page 23: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

• Adjust Font, Color, Size, Alignment, Location

• Adjust Margins

23

Page 24: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Complex Modifications

Page 25: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Add existing columns to Reports

Requires Extensibility License

Requires Eclipse

• Example – add name of approver to report

• Print Vendor List – aprvend.rptdesign

25

Page 26: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Extend Data Source Result Set

This change involves extending the report definition, making changes to the data source result set, and making changes to the report template.

26

Page 27: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Extend Report Definition

XT_AP_VEND_DD_1

1. Select the Report Definition for the report in the Extensibility Designer.

2. Extensibility Info tab – Change Title, Status, Currency, Actions Before/After, Page Setup.

Always Use Design Settings checked prevents user from overriding defaults.

27

Page 28: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Extend Data Source Result Set

Display the Edit Result Set Screen and add:

Select A.FRM_VEND_ID as XT_FRM_VEND_ID,

A.ENTR_USER_ID as XT_ENTR_USER_ID,

A.TIME_STAMP as XT_TIME_STAMP,

B.VEND_ID AS XT_VEND_ID

From VEND_APVL_AUDIT_HS A

JOIN VEND B ON A.FRM_VEND_ID = B.VEND_ID

WHERE A.FRM_VEND_ID = :VEND_ID

28

Page 29: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Extend Data Source Result Set

Enter the same ID in the Report Variable field.

29

Page 30: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Extend Data Source Result Set

On the Report Definition Screen

Add new column to the list of variables for the report.

30

Page 31: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Extend a Report Template

The report template is not extended in the Extensibility Designer. Specify the new template name and location in the Report Definition extension and then use the Eclipse IDE to design the changes.

The main components of a Costpoint report are:

Data Sources – receives from CP Application server (BIRT plugins connect)

Data Sets – data setup in report definition. Defines which columns (fields) are fed into report from data source result set.

Body – content of the report. Cover page and table for detail report content. If edit or error report exist, there will be multiple tables.

Master Pages – generic info such as page number, heading etc.

31

Page 32: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Data Source

Outline view, select and expand the Data Sources section.

You can then view CP_DataSource as the single data source for the report.

32

Page 33: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Data Set

• Expand the Data Set folder in outline view

• Generally, for each data source result set assigned to the report, there is a Data Set in this folder.

• In this example, there is only one Data Set, APRVEND Data Set.

33

Page 34: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Confirm Data Set in Eclipse

Expand the Data Set in Object Explorer – Right-Click the Data Set

Choose System Name

Select Extension

Select Report in Extension

Confirm Output Columns

34

Page 35: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Modify Report

Open aprvend.rptdesign

Modify Label

Add Approved By

Insert Data

35

Page 36: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Insert Data to Report

Insert Element – in the Outline

Select the Element to Insert.

In this example choose Data.

36

Page 37: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Insert Data to Report

Choose Data Type in the Edit Data Binding screen

Select ‘String’

Insert Expression from

available data sets

Double Click to insert.

37

Page 38: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Print Vendor List Report

Approved by now visible on the report

38

Page 39: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Print Purchase Requisition with Signature

• ppprprrq.rptdesign

• APPRVL_EMPL_IDadded to signature line

39

Page 40: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Extend Data Source Result Set - REQ

SELECT A.NAME AS XT_APPROVED_BYFROM W_USER_UGRP_LIST AJOIN RQ_HDR_APPRVL B ON A.SEC_OBJ_ID = B.APPRVL_USER_IDWHERE B.RQ_ID = :RQ_ID AND B.APPRVL_SEQ_NO = :APPRVL_SEQ_NO

Add XT_APPROVED_BY as Report Variable in Extensibility Report Options (Currency and Report Tab)

Modify ppprprrq.rptdesign, connected to Eclipse add data source and insert XT_APPROVED_BY field above Signature Line. May require some adjustments for the first report.

40

Page 41: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Print PO with Signature

• porppo.rptdesign

• Added APPROVED_BYto the signature line

41

Page 42: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Extend Data Source Result Set - PO

SELECT APPRVL_USER_ID AS XT_APPRVL_USER_IDFROM PO_HDR WHERE PO_ID = :PO_ID AND PO_RLSE_NO = :PO_RLSE_NOAND PO_CHNG_ORD_NO = :PO_CHNG_ORD_NO

Add XT_APPRVL_USER_ID as Report Variable in Extensibility Report Options (Currency and Report Tab)

Modify porppo.rptdesign, connected to Eclipse add data source and insert field XT_APPRVL_USER_ID above Signature Line. May require some adjustments.

42

Page 43: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Print Change Order with Signature

• porpco.rptdesign

• Added APPROVED_BYto the signature line

43

Page 44: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Extend Data Source Result Set – PO Change Order

SELECT APPRVL_USER_ID AS XT_APPRVL_USER_IDFROM PO_HDR WHERE PO_ID = :PO_ID AND PO_RLSE_NO = :PO_RLSE_NOAND PO_CHNG_ORD_NO = :PO_CHNG_ORD_NO

Add XT_APPRVL_USER_ID as Report Variable in Extensibility Report Options (Currency and Report Tab)

Modify porpco.rptdesign, connected to Eclipse add data source and insert field XT_APPRVL_USER_ID above Signature Line. May require some adjustments.

44

Page 45: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Summary

• Eclipse required to modify reports

• Modifications are made to reports on the application server

• All reports in Costpoint can be modified

• Requires knowledge of application name, reports used and file locations

• Modified reports can be stored elsewhere to avoid being overwritten

• Extensibility allows additional data to be added and incorporated into reports

45

Page 46: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems

Questions?

46

If you have any questions or need further assistance please contact:

David McCallisterEmail: [email protected]: 817.695.9126

Page 47: CP-66: Customize Standard Costpoint Reports …...CP-66: Customize Standard Costpoint Reports using Extensibility Designer David McCallister Agency Administration Information Systems