Skip to content

MobileCRM.UI.EntityForm.showPleaseWait

rescocrm edited this page May 15, 2023 · 9 revisions

Shows a please wait message, disabling the form except for the close command.

Arguments

Argument Type Description
caption String Wait message.

This example demonstrates how to use the "Please Wait" window while performing the asynchronous operation.

/// Try to get the device's geo coordinates and show please wait window while the operation is in progress.
function getGPSCoords() {
	var wait = MobileCRM.UI.EntityForm.showPleaseWait("Getting the GPS coordinates...");
	MobileCRM.Platform.getLocation(function (coords) {
		wait.close();
		if (coords.latitude && coords.longitude)
			MobileCRM.bridge.alert("latitude : " + coords.latitude + " longitude : " + coords.longitude);
	}, function (err) {
		wait.close();
		MobileCRM.bridge.alert(err);
	});
}
Clone this wiki locally