AfterUpdateRecord Event

Description

This event fires after the user has updated a record.

Discussion

If the user updates multiple records at once, this event will be called multiple times - once for each record that was updated. Contrast with the AfterUpdateRecords event.

The following variables are available to you in the event:

Variable
Description
e.GridDefinition

The grid component definition

e.rtc

You can put any data in this variable that you want to pass to other events. e.g. e.rtc.mydata = 'value1'

e.rtc.A_AjaxResponses

A pointer to the AjaxResponses array.

e.rowNumber

The row number.

e.dataSubmitted

Field values that were submitted.

e.oldDataSubmitted

Field values, before any user edits

e.DirtyFields

CRLF delimited list of fields that were edited

e.Part

"Grid" or "DetailView"

Returning JavaScript

Your can return JavaScript to execute in the browser by setting the aa array:

dim aa as p
aa = e.rtc.A_AjaxResponses
i = aa.append()
aa[i].text = "alert('Message');"
aa[i].id = 100  'the order in which the Ajax responses are sent to the browser

Setting State Variables

You can also set state variables in this event. The value of any state variables will be available in all subsequent ajax callbacks (in the e.__si2 object).

To set a state variable:

e._state.myvar1 = "value1"
e._state.myvar2 = "value2"