OptPreUpdateCallback method: OptBase class
Syntax
OptPreUpdateCallback(&OldRecord, &NewRecord)
Description
The OptPreUpdateCallback method launches before PeopleSoft Optimization Framework propagates to the datacache any database update that it encounters for a callback record.
Use this method to perform additional processing for your own purposes, including modifying any derived data structures that might be affected by the update. You accomplish this by adding your own PeopleCode to the extended method. The parameters provide the current and future content of the row.
Don't call this method in your own PeopleCode. It's called automatically at the appropriate moment by PeopleSoft Optimization Framework, which enables your added functionality to run.
Important:
If you designate any record in the analytic type definition as a callback record, you must ensure that you extend this callback method in your derived class, even if the extended method contains only a Return statement. Otherwise the Optimization PeopleCode plug-in will fail.
Parameters
| Parameter | Description |
|---|---|
|
&OldRecord |
Specifies a record variable that contains the pre-update content of the data row to be updated. |
|
&NewRecord |
Specifies a record variable that contains the post-update content of the data row to be updated. |
Returns
A Boolean value: True if the method is successful, False otherwise.