| Parameter | Description |
|---|---|
| sOldValue | The old value of the column |
| sNewValue | The new value of the column |
Procedure OnEndEdit String sOldValue String sNewValue
OnEndEdit is sent as a notification that a column value has changed. It is called when the end of an edit process and is only called when the value is changed by the user by typing something into the current cell.
It is not called when a column value changes programmatically (UpdateCurrentValue), when the data is initially created or if the value is changed as the result of a lookup list (e.g. via a cDbCJGridPromptList) selection (you can use Prompt_Callback for this case).
If a checkbox value is changed, OnEndEdit is called with the old and new values as determined by the checked state and the psCheckBoxTrue and psCheckBoxFalse property values.
This event is a notification. When called, the value has already been updated in your datasource.
This is a good event to use if a change in a value needs to change column values or attributes in the same row.
// Assume this is a price column
Procedure OnEndEdit String sOldValue String sNewValue
Integer iQty
Get SelectedRowValue of oQuantity to iQty
Send UpdateCurrentValue of oTotal (Number(sNewValue) * iQty)
End_Procedure