From 8f3d0dbab25988f216e73b6068c27567a83cdb9f Mon Sep 17 00:00:00 2001 From: Mehran Qadri Date: Thu, 19 Mar 2026 14:36:59 -0400 Subject: [PATCH 1/2] EDU-9566: Updated code snippet to use LongOperationManager.StartOperation --- .../CodeSnippets/Activity3.1_Step3/RSSVRepairPriceMaint.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; From f8132235c3a89d432733a2d9fb367b4dcd919853 Mon Sep 17 00:00:00 2001 From: Mehran Qadri Date: Thu, 19 Mar 2026 14:43:39 -0400 Subject: [PATCH 2/2] EDU-9566: Made the same change in the final customization project --- .../PhoneRepairShop_Code/RSSVRepairPriceMaint.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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.*/