Skip to content

MobileCRM.UI.HomeForm.onSyncFinished

rescocrm edited this page May 15, 2023 · 9 revisions

[v8.1] Binds the new handler to the synchronization finish event.

Arguments

Argument Type Description
handler function(homeForm) A function which will be called when the synchronization finished event occurs with current instance of the MobileCRM.UI.HomeForm as parameter.
scope Object A scope in which the handler should be called.

This example demonstrates how to handle the synchronization finished event from the home form replacement iFrame.

MobileCRM.UI.HomeForm.onSyncFinished(function (homeForm) {
	/// <param name="homeForm" type="MobileCRM.UI.HomeForm"/>
	if (homeForm.lastSyncResult.newCustomizationReady && !homeForm.lastSyncResult.customizationDownloaded) {
		MobileCRM.bridge.alert("Application update is available");
	}
}, null);
Clone this wiki locally