Export QC History Discrete Observations to a Report
Use this activity to export QC history discrete observations to a report. Refer to Generating Grid Reports.
Activity Steps
- Access the CCQCHS—QC History Summary application from the main menu or quick launch to display the CCQCHS—Search QC History Summary screen.
- Select Group By firstly by Analytical Type and QC Type or Analytical Type only, secondly by Standard and Lot or Standard only, and thirdly by Scheme and Version or Scheme only.
- Enter other search criteria, as required, and click Submit. (All codes, enumerations and Job Name fields are case-sensitive for searching.)
QC history summaries that match the criteria display in the grid.
- Open the required QC history summary to display the CCQCHS—QC History Summary Detail screen.
- Click Export to Report on the grid.
- Select a Report Template Code.
If the SEARCH_REPORT_CCQCHS_ACCURACY application preference is defined and contains a comma-separated list of report templates in the format Report Template Code:Text Description, and you have searched for QC Types of Standard and Spike, when you attempt to export the search results to a grid report, then the Report Template Code drop-down list is populated from this list.
If the SEARCH_REPORT_CCQCHS_CONTAMINATION application preference is defined and contains a comma-separated list of report templates in the format Report Template Code:Text Description, and you have searched for QC Types of Blank, when you attempt to export the search results to a grid report, then the Report Template Code drop-down list is populated from this list.
If the SEARCH_REPORT_CCQCHS_PRECISION application preference is defined and contains a comma-separated list of report templates in the format Report Template Code:Text Description, and you have searched for QC Types of Duplicate and Replicate, when you attempt to export the search results to a grid report, then the Report Template Code drop-down list is populated from this list.
- Select Printer to print the report.
If the SEARCH_REPORT_DEVICE application preference is defined and contains a Device Code, and no default device is attached to the report template in use, when distribution details are entered for a grid report, then the printer defaults to this device.
- Select Email To to email the report.
If the SEARCH_REPORT_EMAIL_TO application preference is defined and contains a valid email address, when an email is generated for a grid report, then the Email To email address is set to this email address.
- Check Download to download the report.
- Click OK.
The QC history discrete observation report is generated with a copy of the latest Statistical Chart.
If the EXPORT_REPORT_LANGUAGE application preference is defined and contains a Language, when a grid report is generated, then the Language defaults to this language. If this preference is not defined, or is defined and contains an invalid language, when a grid report is generated, then the Language defaults to EN_AU.
Conditions for Executing Methods from a Report Script
After a report of any type is generated, the following methods can be run from a post-generation event hook, in the following order:
1) If the REPORT_SCRIPT application preference is defined and contains a Script Code, and a script can be found by first looking lab-scope and if not found there then looking or at org-scope, and the script contains the 'AfterReportGenerate' method, when a certificate report is generated, then that method is executed.
2) If the report template has a Script Code defined and the script contains the 'AfterReportGenerate' method, when a certificate report is generated, then that method is executed.
The DTO of the search is exposed in the script environment.
Conditions for Distributing Reports
If print details were entered then the grid report document is printed.
If email details were entered then the grid report document is emailed.
If the SEARCH_REPORT_EMAIL_SUBJECT_TEXT application preference is defined and contains a syntax code, and a syntax exists with that code and a Syntax Type of Report Request, when an email is generated for a grid report, then the email subject contains the text generated by the syntax.
If the SEARCH_REPORT_EMAIL_MESSAGE_TEXT application preference is defined and contains a syntax code, and a syntax exists with that code and a Syntax Type of Report Request, when an email is generated for a grid report, then the email message body contains the text generated by the syntax.
