Handle data-related errors
- Last Updated: October 29, 2020
- 2 minute read
- OpenEdge
- Version 12.2
- Documentation
You may want to detect data-related errors in your server-side application code
before an attempt is made to update the database. For example, if a field was changed in
the client to a value that is outside the acceptable range of values, you can add code
in the server-side application to detect the error. In such a case, you set the REJECTED attribute for a row and set the
ERROR attribute at the temp-table and
dataset levels. When you set the REJECTED attribute in
the server for a row, you always set it for the before-table buffer.
Similar to how MERGE-CHANGES handles rows with
the ERROR attribute set, MERGE-CHANGES does not merge rows with the REJECTED attribute set.
Set REJECTED for related records
ttOrder row, you would:In addition, you should set the ERROR attribute for the
ttOrderLine and ttOrder temp-tables, and also the
dsOrderOrderLine dataset.
The following illustration shows the REJECTED attribute set on child
temp-table rows and the ERROR attribute set on the temp-table and
dataset.
