Add an Expression for Background Color of Result Field - Intergraph Smart Instrumentation - Help

Intergraph Smart Instrumentation Help

Language
English
Product
Intergraph Smart Instrumentation
Search by Category
Help
Smart Instrumentation Version
13.1

A result field is a field that shows a calculated value based on a calibration formula. Use this procedure to set the software to display a colored background when the field value exceeds the specified limit, for example, if the As Found field value exceeds the allowed tolerance. For examples of a field color expression, see IF Expression for Field Color.

  1. Open the target form page saved as a .psr file in InfoMaker. For details, see Open a Form Page in InfoMaker.

  2. In the Report window, right-click the target table column, and then, select Properties.

  3. In the Properties window, select the Fonts tab.

  4. Beside the Background Color box, select PPM All Outputs Graphic.

  5. On the Background Color dialog, in the Functions pane, select the if(b, t, f) function, in which b stands for a Boolean expression, t for true, and f for false.

  6. Substitute the b argument with the name of the table column whose background you want to mark with a distinct color, and also define the condition.

  7. Substitute the t, f arguments with the background color parameters as you require.

    SHARED Tip You can substitute the t, f arguments with the InfoMaker RGB function rgb(0,0,0) and f with 1073741824, which is the standard Windows Background color set for an editable field. In the RGB function, you can enter any number in the range between 1 and 255, as you require.

  8. Close the Background Color dialog.

    On the Font tab, the icon beside the Background Color box changes to PPM All Outputs Graphic.

    You can ignore the color setting displayed in the box because an expression overrides the specific property value defined in the Properties window.

  9. Save the .psr file.