OnEndEdit - cCJGridColumn

Sent when an edit has changed a column value

Type: Event

Parameters: String sOldValue String sNewValue

ParameterDescription
sOldValueThe old value of the column
sNewValueThe new value of the column


Syntax
Procedure OnEndEdit String sOldValue String sNewValue

Description

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