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 )
Event Id to complete. Optional - if not passed the current event is completed.
Optional - the data to write to the ReturnData member.
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)
lcXML = oXML.CursorToXML() && This is our option return data loAsync.CompleteEvent(lcId,lcXML)
See also:Class wwAsyncWebRequest
Comment or report problem with topic