Skip to content

Commit 0aa7912

Browse files
committed
Added new Client APIs
1 parent 18c09c3 commit 0aa7912

File tree

4 files changed

+121
-0
lines changed

4 files changed

+121
-0
lines changed

powerapps-docs/developer/model-driven-apps/clientapi/TOC.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
href: ./reference/events/grid-onrecordselect.md
2222
- name: Grid OnSave event
2323
href: ./reference/events/grid-onsave.md
24+
- name: OnLookupTagClick event
25+
href: ./reference/events/onlookuptagclickevent.md
2426
- name: OnProcessStatusChange event
2527
href: ./reference/events/onprocessstatuschange.md
2628
- name: OnPreProcessStatusChange event
@@ -152,6 +154,8 @@
152154
href: reference/controls/addCustomView.md
153155
- name: addNotification
154156
href: reference/controls/addNotification.md
157+
- name: addOnLookupTagClick
158+
href: reference/controls/addOnLookupTagClick.md
155159
- name: addOnPostSearch
156160
href: reference/controls/addOnPostSearch.md
157161
- name: addOnResultOpened
@@ -214,6 +218,8 @@
214218
href: reference/controls/openSearchResult.md
215219
- name: refresh
216220
href: reference/controls/refresh.md
221+
- name: removeOnLookupTagClick
222+
href: reference/controls/removeOnLookupTagClick.md
217223
- name: removeOnPostSearch
218224
href: reference/controls/removeOnPostSearch.md
219225
- name: removeOnResultOpened
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: "addOnLookupTagClick (Client API reference) in model-driven apps| MicrosoftDocs"
3+
ms.date: 02/11/2020
4+
ms.service: powerapps
5+
ms.topic: "reference"
6+
ms.assetid: d18136d2-a3cf-4440-8e6b-1703594acd79
7+
author: "KumarVivek"
8+
ms.author: "kvivek"
9+
manager: "annbe"
10+
search.audienceType:
11+
- developer
12+
search.app:
13+
- PowerApps
14+
- D365CE
15+
---
16+
# addOnLookupTagClick (Client API reference)
17+
18+
Adds an event handler to the [OnLookupTagClick](../events/onlookuptagclick.md) event.
19+
20+
## Control types supported
21+
22+
Lookup
23+
24+
## Syntax
25+
26+
`formContext.getControl(arg).addOnLookupTagClick(myFunction);`
27+
28+
## Parameter
29+
30+
|Name|Type|Required|Description|
31+
|--|--|--|--|
32+
|myFunction|Function reference|Yes|The function to add to the [OnLookupTagClick](../events/onlookuptagclick.md) event. The [execution context]((../../../clientapi-execution-context.md)) is automatically passed as the first parameter to this function, and its eventArgs includes the tag value.<br/><br/>You should use a reference to a named function rather than an anonymous function if you later want to remove the event handler.|
33+
34+
### Related topics
35+
36+
[removeOnLookupTagClick](removeOnLookupTagClick.md)
37+
38+
[OnLookupTagClick event](../events/onlookuptagclick.md)
39+
40+
41+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: "removeOnLookupTagClick (Client API reference) in model-driven apps| MicrosoftDocs"
3+
ms.date: 10/31/2018
4+
ms.service: powerapps
5+
ms.topic: "reference"
6+
ms.assetid: 649fe7b0-016d-409f-ba3c-b14e0f1953e0
7+
author: "KumarVivek"
8+
ms.author: "kvivek"
9+
manager: "annbe"
10+
search.audienceType:
11+
- developer
12+
search.app:
13+
- PowerApps
14+
- D365CE
15+
---
16+
# removeOnLookupTagClick (Client API reference)
17+
18+
Removes an event handler from the [OnLookupTagClick](../events/onlookuptagclick.md) event.
19+
20+
## Control types supported
21+
22+
Lookup
23+
24+
## Syntax
25+
26+
`formContext.getControl(arg).removeOnLookupTagClick(myFunction);`
27+
28+
## Parameter
29+
30+
|Name|Type|Required|Description|
31+
|--|--|--|--|
32+
|myFunction|Function reference|Yes|The function to be removed from the [OnLookupTagClick](../events/onlookuptagclick.md) event.|
33+
34+
### Related topics
35+
36+
[addOnLookupTagClick](addOnLookupTagClick.md)
37+
38+
[OnLookupTagClick event](../events/onlookuptagclick.md)
39+
40+
41+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: "OnLookupTagClick Event (Client API reference) in model-driven apps| MicrosoftDocs"
3+
ms.date: 02/11/2020
4+
ms.service: powerapps
5+
ms.topic: "reference"
6+
ms.assetid: e291973b-9634-4442-995c-37fd49a10571
7+
author: "KumarVivek"
8+
ms.author: "kvivek"
9+
manager: "annbe"
10+
search.audienceType:
11+
- developer
12+
search.app:
13+
- PowerApps
14+
- D365CE
15+
---
16+
17+
# OnLookupTagClick Event (Client API reference)
18+
19+
This event occurs when the the user clicks the tag in a lookup control.
20+
21+
An execution context object is passed to event handlers for this event. You can use the [getEventArgs](../executioncontext/getEventArgs.md) method to retrieve an object that has the **getTagValue** method.
22+
23+
The **getTagValue** method returns an object with the following properties:
24+
25+
- **name**. String. Name of the tag.
26+
- **id**: String. ID of the tag.
27+
- **entityType**. String. Entity type of the tag.
28+
- **fieldName**. String. The originating lookup field that raised the event.
29+
30+
## Methods supported for this event
31+
- [addOnLookupTagClick](../controls/addOnLookupTagClick.md) method to add event handlers for this event.
32+
- [removeOnLookupTagClick](../controls/removeOnLookupTagClick.md) method to remove event handlers for this event.
33+

0 commit comments

Comments
 (0)