This event fires after the user has inserted a record.
If the user inserts multiple records at once, this event will be called multiple times - once for each record that was inserted. Contrast with the AfterUpdateRecords event.
The following variables are available to you in the event:
The grid component definition
You can put any data in this variable that you want to pass to other events. e.g. e.rtc.mydata = 'value1'
A pointer to the AjaxResponses array.
The row number.
Field values that were submitted.
Field values, before any user edits
CRLF delimited list of fields that were edited
(For SQL Tables Only) value of identity column in row just inserted.
(For DBF Tables Only) value if primary key in row just inserted. (Either a record number, or key value)
"Grid" or "DetailView"
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"