Standard and User-Defined Component Interface Methods
Every Component Interface comes with a standard set of methods:
-
Cancel()
-
Create()
-
Find()
-
Get()
-
Save()
Use these methods during runtime to affect the data of the Component Interface.
The application developer can, at design time, disable any of these methods for the Component Interface.
In addition, an application developer can write their own methods. These methods are written as Functions using Component Interface PeopleCode. For example, suppose you wanted to be able to copy an instance of Component Interface data. You might write your own Clone method.
Note:
User-defined method names must not be named GetPropertyName. The C header for Component Interfaces creates functions with that name so you can access each property. If you create your own GetPropertyName functions, you receive errors at runtime. User-defined methods can take only simple types of arguments (such as number, character, and so on) because user-defined methods can be called from C/C++ as well as from PeopleCode. PeopleCode can use more complex types (like rowset, array, record, and so on), but these types of arguments are unknown to C/C++.