version 1.5
OD Update in context (context_ID{; index}) Integer
| Parameter | Type | Description | |
| context_ID | Longint | Context identifier | |
| index | Integer | Array index | |
| Function result | Integer | Error code | |
| 1 = the operation is successful | |||
| -1 = an error occurs |
Description
The OD Update in context function updates the current row on the Oracle server based on the 4th Dimension objects that are specified by context binds.
context_ID must be the identifier of a previously created and active context.
index applies only to binds involving arrays. If index is not specified, OD Update in context updates the current row using the lines of the arrays corresponding to the number of the current row. If the number of the current row is greater than the size of the array, OD Update in context returns -1.
If index is specified, OD Update in context updates the current row using the array lines at index index. If index is greater than the size of an array, OD Update in context returns -1.
OD Update in context sends a SQL query of the UPDATE WHERE type, and specifies only the columns that are part of the context and that have the kForUpdate option set (see OD ADD TO CONTEXT).
OD Update in context returns 1 if it succeeds and -1 if an error occurs.
See Also
OD Delete in context, OD Insert in context.