Show Out of Spec Values in Red in ERS Raw Data Report - 4.2
Steps to setup conditional formatting for font color in ERS Report Designer
Print Friendly View
written: 08/09/2024
last modified: 08/09/2024

This tutorial will walk you through the steps of editing the Raw Data Report template in ERS 4.20 so that it will print Out of Spec values in red.

Preparation

First, we will make a copy of an existing template file to edit. Next, we will set up a font color condition so that the report prints values in red that fall outside of the spec limits.

Editing the Template

  1. In ERS go to Report > Design Templates.

image.png

  1. ERS will prompt you to select a report template. Choose your own custom template if you have one and then select Open. In this tutorial we will be using RawDataStats.rdr.
  1. Now the Report Designer window will open with the selected report template.

image.png

  1. Go to File > Save As to save the template file with a new name so you don't modify the original template.
  1. Select the Projects tab in the Objects pane on the top left side of the Report Designer window.
  1. Double-click on the "Table: part" section in the Table of Contents list in the upper left to open the editor window.

image.png

  1. Once the Table Contents - part window opens, select the Data Line tab.
  1. Use the Control key to select mulitple lines. Select each line under "Line Definition 1" that begins with if(part.section_id@section.section_id... These lines print the values for each characteristic.

Picture 3.png

  1. With those lines selected, look for an expand the Font property section in the Properties pane on the right:

Picture 4.png

  1. Double-click on the "(Default)" that shows next to Color to open the editor.
  1. Paste this formula into the Color formula editor window:

If((part.value_01 > (section.nominal_01 + section.plus_tolerance_01)) OR (part.value_01 < (section.nominal_01 + section.minus_tolerance_01)), RGB(255,0,0), RGB(0,0,0))

  1. This formula says, if the value of part_01 is greater than the nominal + plus tolerance, or lower than the nominal + minus tolerance, make the font color red, otherwise leave it black.
  1. Currently, all 10 parts will have the same formula which references part_01. So, you will have to go back and edit the Font Color formula for parts 02 through 10 to change the numbers in the variables. For example, the color formula for part 2 is:

    If((part.value_02 > (section.nominal_02 + section.plus_tolerance_02)) OR (part.value_02 < (section.nominal_02 + section.minus_tolerance_02)), RGB(255,0,0), RGB(0,0,0))
  1. Select OK to close the editor window, and select OK again to close the Table Contents - part window.
  1. Go to File > Save to save your template and then you can try printing a report by going to Report > Print Report.

report_Result.png