Validation procedures for the generic update API
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
For example, the OrderEntity procedure
has this sample validation procedure, which based on its name, will be
executed whenever a row in the ttOline table in
the ProDataSet is modified:
|
The basic principles of writing procedures such as this one are:
- You can pass in the entire ProDataSet
BY-REFERENCEfrom another procedure in the same session without the cost of copying it, so that the validation logic can examine any part of the ProDataSet that it needs to. - The current rows in the buffers will be those that were current
in the caller. In particular, the current row in the table that
triggered the event is the one that was modified, so you can examine
its values without having to
FINDit.
Validation
procedures can set the ERROR and/or ERROR-STRING attributes
for the row to communicate status information. Setting ERROR-STRING without setting ERROR lets
you return an informational or warning message without causing an
actual error.