MobileCRM.UI.HomeForm.requestObject - Resconet/JSBridge GitHub Wiki
[v8.0] Requests the managed HomeForm object.
Method initiates an asynchronous request which either ends with calling the errorCallback or with calling the callback with Javascript version of HomeForm object. See MobileCRM.Bridge.requestObject for further details.
Argument | Type | Description |
---|---|---|
callback | function(homeForm) | The callback function that is called asynchronously with serialized HomeForm object as argument. Callback should return true to apply changed properties. |
errorCallback | function(errorMsg) | The errorCallback which is called in case of error. |
scope | Object | The scope for callbacks. |
This example demonstrates how to change the Home Form title.
function changeTitle(newTitle) {
MobileCRM.UI.HomeForm.requestObject(function (homeForm) {
/// <param name="homeForm" type="MobileCRM.UI.HomeForm"/>
homeForm.form.caption = "My Changed Caption";
return true;
}, MobileCRM.bridge.alert);
}