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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om