-
Notifications
You must be signed in to change notification settings - Fork 24
MobileCRM.UI.IFrameForm.requestObject
rescocrm edited this page May 15, 2023
·
9 revisions
[v9.0] Asynchronously requests the IFrameForm object.
Method initiates an asynchronous request which either ends with calling the errorCallback or with calling the callback with Javascript version of IFrameForm object. See MobileCRM.Bridge.requestObject for further details.
| Argument | Type | Description |
|---|---|---|
| callback | function(iFrameForm) | The callback function that is called asynchronously with serialized MobileCRM.UI.IFrameForm 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 demonstrate how to asynchronously requests the IFrameForm object.
function requestiFrame() {
MobileCRM.UI.IFrameForm.requestObject(function (iFrame) {
/// <param name='iFrame' type='MobileCRM.UI.IFrameForm'/>
var p = document.createElement("p");
p.innerText = "IFrameForm form properties = ";
for (var prop in iFrame.form) {
p.innerText += prop + " : " + iFrame.form[prop];
}
document.appendChild(p);
}, MobileCRM.bridge.alert, null);
}