|
Reports Overview
Contents
Object Model Overview
Reporting Overview
Report generation in APM has been implemented by tying the reporting features of the DevExpress Reporting™ reporting tool into the object model. The object model can be viewed as the “hub” that links the user, the reporting tool, and the database together. This link provides the necessary mechanisms that allow each element to contribute to the generation of a report. Using the object model as the conduit, users can initiate the design of a report.Selecting Data for the Report
Designing a Report
Printing a Report
Class Associated With the Report
Each report that you create is associated with a class in the object model. This class determines where users can access the report in the user interface. For example, if you create a report by selecting Create Custom Report from the Task menu on an open work order task, the report will be associated with the Work Order Task class and will appear under the Task menu, Print menu item for all primary windows on the Work Order Task class. When you decide to design a custom report, you need to be sure that you access the Create Custom Report option from the appropriate place. You can create multiple reports on each class in APM.Report Hierarchy
Applying Filters, Sorts, and Calculations to Fields
Between: Use this condition to select a range of items to include on the report.Does not contain: If the attribute is a text string, use this condition to filter out strings that contain a specific string.Equal: Use this condition to include only the items that equal the parameter or value you enter. For example, you can select all work orders that have the status “Planned”.Greater Than: Use this condition to include only the items that are greater than the selected parameter or value.Greater Than or Equal: Use this condition to include only the items that are greater than or equal to the selected parameter or value.Less Than: Use this condition to include only the items that are less than the selected parameter or value.Less Than or Equal: Use this condition to include only the items that are less than or equal to the selected parameter or value.Like: If the attribute is a text string, use this condition to include items that contain a specific string. For example, if you enter a string with asterisks such as “*correct*”, you will get values that start or end with “correct”.Not Equal: Use this condition to include only the items that are not equal to the selected parameter or value.
Ascending: Items with the lowest value or parameter will be listed first, at the top of the report.Descending: Items with the highest value or parameter will be listed first, at the top of the report.
None: Select this option if you do not want any calculations performed on the information in this field.Sum: Select this option to get a total value for all items in this field. Sum only works when the field contains a Number, Date/Time, or Currency.Maximum: Select this option to list the highest value in this field. Maximum only works when the field contains a Number, Date/Time, or Currency.Minimum: Select this option to list the lowest value in this field. Minimum only works when the field contains a Number, Date/Time, or Currency.Average: Select this option to list the average value in this field. The average is calculated by totaling all fields and dividing by the number of items in the list. Average only works when the field contains a Number, Date/Time, or Currency.Count: Select this option to view the number of items in this field. Count works for any field on your report.Adding a Data bound Accessory Field for Custom Data
A new report control feature called “Custom Data Label” has been added to APM Forms Editor Toolbox panel, Accessories tab.This new feature gives the user the ability to draw a data bound field on the report to show the custom data. The control can be dragged from the Accessories tab onto the layout panel and placed on any report band (header, detail or footer). Summary and calculated fields can be added to this control.Technical Background
Customize Reports: Using this function, you can create, edit, preview, and print customized reports, as well as view and print reports that come with APM. These reports are saved in the database so that you can access them through APM whenever necessary.When you create a custom report, you can specify whether the report is accessible from the site’s Reports menu or on an object’s menu, such as Strategy Development reports.Editing in Report Designer
You can make some changes to custom reports directly through the APM Report Designer. To change the layout, you need to open the report in Create Custom Report and then select the existing report to edit. Note that you cannot preview the report from the Report Designer. You must save the changes made to the report and then preview it from the Reports option on the menu bar.External Reports
Customers can implement their own reports using their own reporting tool and then integrate those reports into APM. The external reports appear on the Reports menu along with other report. Basically, APM acts as a placeholder for the external reports.
• Calling out to an external process: A user can utilize a reporting tool to print an APM report. For example, John Doe uses a reporting tool called “reportgen.exe” to print a report called AssetReport.rpt for an asset with OID =1234. The report is defined on the Asset class. To execute the report, John Doe runs Reportgen.exe AssetReport.rpt objectID=1234="John Doe.
• Requesting a URL: This is similar to the external process method, except that a URL is built up instead of a command line. It is requested via the operating system’s Shell Execute method. For example: https://reportserver/AssetReport.rpt?objectid=1234&username="John%20 Doe".
• Calling a custom method: Requesting a report in APM can trigger an external modeled method on the class that owns the report. The method can be an external custom method created using the APM normal custom method feature, EXPLink. Once invoked, the responsibility for generating and executing the report lies with the external method. The method can indicate success or failure via argument object passed to the method.Changing the Logo on Printed Reports
Deploying Custom Reports