MobileCRM.UI.MediaTab.getDocumentInfo - Resconet/JSBridge GitHub Wiki
[v8.0.1] Asynchronously gets the media tab view object.
Arguments
Argument | Type | Description |
---|---|---|
callback | function(Object) | The callback function that is called asynchronously with the document info object. |
errorCallback | function(errorMsg) | The errorCallback which is called in case of error. |
scope | Object | The scope for callbacks. |
This example demonstrates how to get the document info from media tab.
MobileCRM.UI.EntityForm.requestObject(function (entityForm) {
// get media tab by its name
var media = entityForm.getMediaTab("DocumentAction");
media.getDocumentInfo(function (info) {
// 0=None, 1=Signature, 2=WebPage, 3=Image, 4=File
var documentInfo = JSON.stringify(info);
MobileCRM.bridge.alert("Document info : \n\n" + documentInfo);
}, MobileCRM.bridge.alert);
}, MobileCRM.bridge.alert, null);