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:
- Ensure you are working in Design Mode.
- On the ribbon, click Tools | Diagnostics | Configure....
- In the Diagnostics Configuration dialog, on the Custom Diagnostics tab, click Add.
- Enter a label and brief description for the new diagnostics.
- 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.
- 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.
- 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:
- In Design Mode, on the ribbon, click Tools | Diagnostics | List.... If you enabled the diagnostic in Form Mode, click Tools | Diagnostic List.
- Select the type and category of diagnostics that you want to view.
- 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.
- Back in the Diagnostics List dialog, click Refresh to verify if the error has been cleared.
- Continue to resolve errors as necessary until all errors are resolved.
The diagnostic check is complete.