Add an Expression for Field Protection - Intergraph Smart Instrumentation - Help

Intergraph Smart Instrumentation Help

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

This procedure allows you to set the background of a field as protected or editable, depending on the field value and calibration type. For a specific example of such a field and expression, see IF Expression for Field Protection.

  • Tab order value of 0 (zero) overrides field protection expression. Field tab order is set in the Specifications module of Smart Instrumentation. 0 (zero) tab order indicates that the field is non-editable. For details, see Set the Tab Order of the Fields on a Page.

  • The 0 (zero) tab order value is assigned automatically to every new table column you add in the form page in InfoMaker. If you add new fields in InfoMaker and include these fields in an expression for field protection, after completing this procedure, and opening the form page in the Specifications module, you must switch to the default tab order. For details, see Switch to the Default Tab Order.

  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, on the General tab, beside the Protect box, select PPM All Outputs Graphic.

  4. On the Protect 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.

  5. Substitute the b argument with the name of the table columns that you want to protect, operators, and values.

  6. Substitute the t, f arguments with the protection values, with 0 indicating that the field is editable and 1 that the field is protected.

  7. Close the Protect dialog.

    On the General tab, the Protect box now displays the expression and the expression icon changes to PPM All Outputs Graphic.

  8. If needed, define the field background display conditions. For details, see Add an Expression for Background Color of Result Field.

  9. Save the .psr file.