Improved code violations

The Infor Field Inspector mobile app can be used to record code violations for CDR inspections. In addition to the standard code violation functionality, there is an alternative known as 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.

Note: The improved code violation functionality for Android or Windows requires Infor Operations and Regulations April 2022 or later in the back office. For iOS, Infor Operations and Regulations October 2022 or later is required. The improved code violation functionality is not supported if you are using Infor Field Inspector with Infor Operations and Regulations 11.1.

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 Settings > CDR 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 Views > Category (Id=CDR) > Category (Id=Permitting) > Category (Id=Building) in the Mobile configuration.

To show the fields in the grid on the Violations tab of the building inspection viewer, browse to the View (Id=CDR_Building_CodeViolations, Model=) > Controls > GridControl: grdViolations > GridColumns node. The Unit and Room fields are defined under the GridColumns node, but they are hidden by default. To show them, set the Visible attribute on the Label: lblUnit and Label: lblRoom nodes to True.

To show the fields in the Update Code Violation popup, browse to the View (Id=CDR_Building_Violations_AddUpdate, Model=CDR_Building_CodeViolation) > Controls > GroupBox: gbViolation > Controls node. Set the Visible attribute on the Textbox: txtUnit and Textbox: txtRoom 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 View (Id=CDR_Building_Violations_BulkUpdate, Model=CDR_Building_CodeViolation) > Controls > GroupBox: gbViolation > Controls node.

The text box nodes should have the same attributes as the Textbox: txtUnit and Textbox: txtRoom nodes for the Update Code Violation popup.

Note: When you add the Unit field, adding the MaxLength attribute with a value of 10 is important to avoid general database errors.

Case inspections

For case inspections, the views are found under Views > Category (Id=CDR) > Category (Id=Case) in the Mobile configuration.

To show the fields in the grid on the Violations tab of the case inspection viewer, browse to the View (Id=CDR_CodeEnforcement_CodeViolations, Model=) > Controls > GridControl: grdViolations > GridColumns node. The Unit and Room fields are defined under the GridColumns node, but they are hidden by default. To show them, set the Visible attribute on the Label: lblUnit and Label: lblRoom nodes to True.

To show the fields in the Update Code Violation popup, browse to the View (Id=CDR_CodeEnforcement_Violations_AddUpdate, Model=CDR_CodeEnforcement_CodeViolation) > Controls > GroupBox: gbViolation > Controls node. Set the Visible attribute on the Textbox: txtUnit and Textbox: txtRoom 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 View (Id=CDR_CodeEnforcement_Violations_BulkUpdate, Model=CDR_CodeEnforcement_CodeViolation) > Controls > GroupBox: gbViolation > Controls node.

The text box nodes should have the same attributes as the Textbox: txtUnit and Textbox: txtRoom nodes for the Update Code Violation popup.

Note: When you add the Unit field, adding the MaxLength attribute with a value of 10 is important to avoid general database errors.