-
Notifications
You must be signed in to change notification settings - Fork 26
MobileCRM.UI.FormManager.showDetailDialog
rescocrm edited this page May 15, 2023
·
9 revisions
Shows an entity detail dialog.
Argument | Type | Description |
---|---|---|
entityName | String | The entity name. |
id | String | GUID of the existing entity. |
relationship | MobileCRM.RelationShip | The optional relationship with a parent entity. |
This example demonstrates how to open account detail form.
function openAccountDetail() {
var account = new MobileCRM.FetchXml.Entity("account");
account.addAttribute("accountid");
// only one record will be fetched
var fetch = new MobileCRM.FetchXml.Fetch(account, 1);
fetch.execute("Array", // Take the results as an array of arrays with field values
function (res) {
MobileCRM.UI.FormManager.showDetailDialog("account", res[0][0], null);
}, MobileCRM.bridge.alert);
}