Improved code violations
The improved code violation functionality features a different process for recording violations in the mobile app, and provides more detailed information about the locations of code violations.
To use the improved code violation functionality, you must first enable it in the Mobile configuration. You must also edit the configuration to show the new Unit and Room fields in the app.
To enable improved code violations for building and case inspections, select the node in the Mobile conifiguration and set the UseImprovedCodeViolations attribute to True.
To show the Unit and Room fields, you must edit the code violation views.
Building inspections
For building inspections, the views are found under in the Mobile configuration.
To show the fields in the grid on the Violations tab of the building inspection viewer, browse to the node. The Unit and Room fields are defined under the node, but they are hidden by default. To show them, set the Visible attribute on the and nodes to True.
To show the fields in the Update Code Violation popup, browse to the node. Set the Visible attribute on the and nodes to True.
You might also want to add the Unit and Room fields to the Update Violations popup, which is used for bulk updates. These fields are not included in the Mobile configuration by default. You must add the text boxes manually under the node.
The text box nodes should have the same attributes as the and nodes for the Update Code Violation popup.
Case inspections
For case inspections, the views are found under in the Mobile configuration.
To show the fields in the grid on the Violations tab of the case inspection viewer, browse to the node. The Unit and Room fields are defined under the node, but they are hidden by default. To show them, set the Visible attribute on the and nodes to True.
To show the fields in the Update Code Violation popup, browse to the node. Set the Visible attribute on the and nodes to True.
You might also want to add the Unit and Room fields to the Update Violations popup, which is used for bulk updates. These fields are not included in the Mobile configuration by default. You must add the text boxes manually under the node.
The text box nodes should have the same attributes as the and nodes for the Update Code Violation popup.