Create custom diagnostics

You can create custom diagnostics to ensure that your CaseView document functions the way it is intended. Custom diagnostics can be set up to automatically check for errors when performing specific tasks in a document. When an error is detected, the diagnostic will display an error message to alert the user to a problem.

To create custom diagnostics:

  1. Ensure you are working in Design Mode.
  2. On the ribbon, click Tools | Diagnostics | Configure....
  3. In the Diagnostics Configuration dialog, on the Custom Diagnostics tab, click Add.
  4. Enter a label and brief description for the new diagnostics.
  5. In the Diagnostic field, enter the syntax for the diagnostic to check, or click ... to access the Calculation Editor. The syntax should be the true condition representing the way the document normally functions. Only when the syntax is false will a diagnostic error be reported.
  6. In the Display Diagnostic group, select the applicable instances for when you want to check for diagnostic errors. To enable the custom diagnostic to run in Form Mode, select In Diagnostic list in Form Mode.
  7. In the Action to take if Diagnostic Fails group, select Display the following message and enter a brief message to display each time a diagnostic error occurs. Click ... to create a calculation for the warning message. Click OK.

The custom diagnostic is created. You can now perform a diagnostic check to search the document for errors.

To perform a diagnostic check:

  1. In Design Mode, on the ribbon, click Tools | Diagnostics | List.... If you enabled the diagnostic in Form Mode, click Tools | Diagnostic List.
  2. Select the type and category of diagnostics that you want to view.
  3. To correct a diagnostic error, select the diagnostic in the list and click Jump. The document jumps to the location where the error is found. Make any modifications as required to resolve the error.
  4. Back in the Diagnostics List dialog, click Refresh to verify if the error has been cleared.
  5. Continue to resolve errors as necessary until all errors are resolved.

The diagnostic check is complete.