wwAsyncWebRequest::CompleteEvent

Closes out a pending event by setting it's completion timestamp. You can also pass a parameter that specifies the ReturnData to set for the client app.

o.CompleteEvent( lcID, lcData )

Parameters

lcID
Event Id to complete. Optional - if not passed the current event is completed.

lcData
Optional - the data to write to the ReturnData member.

Remarks

If you plan on setting multiple properties beyond the return data you should manually load the event perform the settings, and only then call CompleteEvent() to make sure that the client application gets the full set of data:

o.LoadEvent(lcID)

o.SetProperty("SomeResultData",lcData)
o.oEvent.UserId = "jdoe"

o.CompleteEvent(lcID)

Example

lcXML = oXML.CursorToXML()  && This is our option return data
loAsync.CompleteEvent(lcId,lcXML)

See also:

Class wwAsyncWebRequest

© West Wind Technologies, 1996-2018 • Updated: 08/12/05
Comment or report problem with topic