Web Sample: Server-Side Validation Error Reporting in DSPs
| Author | Barbara Douma |
|---|---|
| Date submitted |
|
| Category | Web |
| Sample file | xw_err_sample_10302_019.zip |
Description
Minimum version: 10.3.02.019
Description
This Uniface 10 sample demonstrates several ways in which you can use the showError and clearError triggers to customize how validation errors
on the server are reported and cleared on the browser. It shows Uniface’s default error display, and three ways in which you can use the showError and clearError web triggers to customize the error visualization:
- By setting properties of the field in error.
- By applying a style to a DOM element.
- By generating an error count and list of errors for multiple validation errors.
To run the sample:
- Import the project export file
prj_full_xw_err_sample.xmland compile the projectXW_ERR_SAMPLE. - Open the component XW_ERR_MAIN and click Compile & Test.
