diff --git a/Customization/T230/CodeSnippets/Activity3.1_Step3/RSSVRepairPriceMaint.cs b/Customization/T230/CodeSnippets/Activity3.1_Step3/RSSVRepairPriceMaint.cs index 70262c2b..0248c5da 100644 --- a/Customization/T230/CodeSnippets/Activity3.1_Step3/RSSVRepairPriceMaint.cs +++ b/Customization/T230/CodeSnippets/Activity3.1_Step3/RSSVRepairPriceMaint.cs @@ -91,8 +91,11 @@ protected virtual IEnumerable validateItemPrices(PXAdapter adapter) var repairPriceItem = RepairPrices.Current; // Execute the ValidatePrices method asynchronously by - // using PXLongOperation.StartOperation - PXLongOperation.StartOperation(this, () => ValidatePrices(repairPriceItem)); + // using LongOperationManager.StartOperation + LongOperationManager.StartOperation(cancellationToken => + { + ValidatePrices(repairPriceItem); + }); // Return the local list variable. return list; diff --git a/Customization/T230/PhoneRepairShop_Code/PhoneRepairShop_Code/RSSVRepairPriceMaint.cs b/Customization/T230/PhoneRepairShop_Code/PhoneRepairShop_Code/RSSVRepairPriceMaint.cs index 70761047..4b249638 100644 --- a/Customization/T230/PhoneRepairShop_Code/PhoneRepairShop_Code/RSSVRepairPriceMaint.cs +++ b/Customization/T230/PhoneRepairShop_Code/PhoneRepairShop_Code/RSSVRepairPriceMaint.cs @@ -76,15 +76,20 @@ protected virtual IEnumerable validateItemPrices(PXAdapter adapter) Actions.PressSave(); var repairPriceItem = RepairPrices.Current; - //Execute ValidatePrices method asynchronously using PXLongOperation.StartOperation - PXLongOperation.StartOperation(this, () => ValidatePrices(repairPriceItem)); + // Execute the ValidatePrices method asynchronously by + // using LongOperationManager.StartOperation + LongOperationManager.StartOperation(cancellationToken => + { + ValidatePrices(repairPriceItem); + }); // Return the local list variable. return list; } #endregion - - private static void ValidatePrices(RSSVRepairPrice repairPriceItem) + + + private static void ValidatePrices(RSSVRepairPrice repairPriceItem) { /* Create an instance of the RSSVRepairPriceMaint graph and set the Current property of its RepairPrices view.*/