There was an error while loading. Please reload this page.
Deletes the sales entity detail (e.g. Order detail) by index.
This example demonstrates how to delete a sales entity detail (e.g. OrderDetail) by index.
function deleteByIndex(index) { MobileCRM.UI.EntityForm.DetailCollection.getAll(function (details) { /// <param name="details" type="Array<MobileCRM.DynamicEntity>"/> if (details[index]) { var product = details[index]; MobileCRM.UI.EntityForm.DetailCollection.deleteByIndex(index, function () { MobileCRM.bridge.alert("Product " + product.properties.productdescription + " successfully deleted."); }, MobileCRM.bridge.alert); } else MobileCRM.bridge.alert("Order doesn't contain any product."); }, MobileCRM.bridge.alert); }
Links: