Add an Expression for Background Color of Protected or Editable Field - Intergraph Smart Instrumentation - Help

Intergraph Smart Instrumentation Help

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

You use this procedure to specify the Windows Background color value in the expression when the field is editable and the Button Face value when the field is protected, depending on the field value and calibration type. For examples of a field color expression, see IF Expression for Field Color.

Prerequisite

  • An expression for settings the appropriate background color always depends on the field protection expression. Therefore, you must also define an expression for field protection. For details, see Add an Expression for Field Protection.

  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 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 same Boolean expression you defined in the field protection expression on the General tab.

  7. Substitute the t, f arguments with the background color parameters 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.