getEventSource (Client API reference)
Returns a reference to the object that the event occurred on.
Syntax
ExecutionContextObj.getEventSource()
Return value
Type: Object
Description: Returns the object from the Xrm object model that is the source of the event, not an HTML DOM object. For example, in an OnChange event, this method returns an item from the formContext.data.entity.attributes collection that represents the changed column.
Events | Return Object |
---|---|
OnChange | column |
OnDataLoad | formContext.data.entity |
OnGridDataLoad | SubGrid control |
OnLoad | formContext.ui |
OnLookupTagClick | Lookup control |
OnPostSearch | kbSearch control |
OnProcessStatusChange | formContext.data.process |
OnProcessStatusChange | formContext.data.process |
OnReadyStateComplete | IFrame control |
OnRecordSelect | formContext.data.entity |
OnResultOpened | kbSearch control |
OnSave | formContext.data.entity |
OnPostSave | None |
OnSelection | None |
OnStageChange | formContext.data.process |
OnStageSelected | formContext.data.process |
OnTabStateChange | tab object |
PreSearch | Lookup control |
Related articles
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for