You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rescocrm edited this page May 15, 2023
·
1 revision
Asynchronously returns requested sales entity detail (e.g. Order detail)
Arguments
Argument
Type
Description
index
Number
An index of requested item.
callback
function(MobileCRM.DynamicEntity)
The callback function that is called asynchronously with the MobileCRM.DynamicEntity object as argument.
errorCallback
function(errorMsg)
The errorCallback which is called in case of error.
scope
Object
The scope for callbacks.
This example demonstrates how to update the order detail quantity.
functionincreaseQuantity(orderDetailIndex,increment){MobileCRM.UI.EntityForm.DetailCollection.get(orderDetailIndex,function(detail){/// <param name="detail" type="MobileCRM.DynamicEntity"/>// work with numbers, not strings!detail.properties["quantity"]=newNumber(detail.properties["quantity"])+newNumber(increment);// Update the SalesOrderDetail entity in order details collectiondetail.update();},MobileCRM.bridge.alert);}