[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.
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);
There was an error while loading. Please reload this page.
Links: