Skip to content

MobileCRM.UI.FormManager.showDetailDialog

rescocrm edited this page May 15, 2023 · 9 revisions

Shows an entity detail dialog.

Arguments

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);
}
Clone this wiki locally