Adding interface methods
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
When you created custormerForm.cls, you specified that it implements the interface, IUpdatable.cls. IUpdatable.cls defines a number of methods for adding, deleting, saving, and canceling updates to database records. Stub code for each of the interface methods is automatically added to the file by default. The stub code has the same signature as the methods specified in the interface file, but the methods themselves are not implemented.
In this exercise, you will replace the DeleteRecord and
SaveRecord stub code with methods that actually do something.
You will not change the stub code for the AddRecord and CancelUpdate
methods. They are not used by any control in the Customer form, so it is not necessary to
implement them. However, methods with the same signatures as those defined in the interface
file are required. If methods with identical signatures do not exist, you will get compiler
errors. Therefore, you should retain the generated stub code, which looks like the
following:
|
To update the DeleteRecord and SaveRecord interface methods in customerForm.cls: