-
Notifications
You must be signed in to change notification settings - Fork 24
MobileCRM.UI.EntityList.onClick
rescocrm edited this page May 15, 2023
·
9 revisions
[v10.1] Binds or unbinds the handler for onClick event on EntityList.
Bound handler is called with the EntityList object as an argument. The EntityList context property contains EntityListClickContext object.
| Argument | Type | Description |
|---|---|---|
| handler | function(entityList) | The handler function that has to be bound or unbound. |
| bind | Boolean | Determines whether to bind or unbind the handler. |
| scope | Object | The scope for handler calls. |
This example demonstrates how to handle a click to a clickable/editable cell on entity list. It works only from iFrame placed on entity view.
MobileCRM.UI.EntityList.onClick(function (entityList) {
/// <param name="entityList" type="MobileCRM.UI.EntityList" />
var context = entityList.context;
var eventInfo = JSON.stringify(context.event);
var entity = context.entities.toString();
var property = context.propertyName;
MobileCRM.bridge.alert("Entity: " + entity + " property: " + property + " was clicked.\nEvent info: " + eventInfo);
}, true);