You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/developer/model-driven-apps/clientapi/events-forms-grids.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Events in forms and grids in model-driven apps| MicrosoftDocs"
3
-
description: All client-side code is initiated by events. In model-driven apps, you associate a specific function in a JavaScript library to be executed when an event occurs. This function is called an *event handler*.
3
+
description: Events initiate all client-side code. In model-driven apps, you associate a specific function in a JavaScript library to be executed when an event occurs. This function is called an *event handler*.
4
4
author: HemantGaur
5
5
ms.author: hemantg
6
6
ms.date: 07/08/2024
@@ -15,9 +15,9 @@ contributors:
15
15
---
16
16
# Events in forms and grids in model-driven apps
17
17
18
-
All client-side code is initiated by events. In model-driven apps, you associate a specific function in a JavaScript library ([Script web resource](../script-jscript-web-resources.md)) to be executed when an event occurs. This function is called an *event handler*. Each event handler specifies a single function within a JavaScript library and any parameters that can be passed to the function.
18
+
Events initiate all client-side code. In model-driven apps, you associate a specific function in a JavaScript library ([Script web resource](../script-jscript-web-resources.md)) to be executed when an event occurs. This function is called an *event handler*. Each event handler specifies a single function within a JavaScript library and any parameters that can be passed to the function.
19
19
20
-
You can associate event handlers to only some events using the UI. For events that are not available to be associated through UI, Client API provides methods that can be used to attach event handlers to such events.
20
+
You can associate event handlers to only some events using the UI. For events that aren't available to be associated through UI, Client API provides methods that can be used to attach event handlers to such events.
@@ -62,7 +62,7 @@ To determine when an event handler is called on a form in bulk edit mode use [`g
62
62
63
63
## Add or remove event handler function to event using code
64
64
65
-
Using the following methods to add and remove event handler for events that cannot be associated through UI:
65
+
Using the following methods to add and remove event handler for events that can't be associated through UI:
66
66
67
67
|Events |Event handler|
68
68
|-------|-------|
@@ -81,7 +81,7 @@ Using the following methods to add and remove event handler for events that cann
81
81
82
82
## Form event pipeline
83
83
84
-
You can define up to 50 event handlers for each event. Each event handler is executed in the order that it is displayed in the **Event Handlers** section in the **Events** tab of the **Form Properties** dialog box.
84
+
You can define up to 50 event handlers for each event. Each event handler is executed in the order that it's displayed in the **Event Handlers** section in the **Events** tab of the **Form Properties** dialog box.
85
85
86
86
Use the [setSharedVariable](reference/executioncontext/setSharedVariable.md) and [getSharedVariable](reference/executioncontext/getSharedVariable.md) methods to pass a common variable between event handlers (functions). Use the execution context [getDepth](reference/executioncontext/getDepth.md) method to know the sequence that an event handler is being executed in relative to other event handlers.
0 commit comments