Skip to content

Commit f813223

Browse files
committed
EDU-9566: Made the same change in the final customization project
1 parent 8f3d0db commit f813223

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

Customization/T230/PhoneRepairShop_Code/PhoneRepairShop_Code/RSSVRepairPriceMaint.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,20 @@ protected virtual IEnumerable validateItemPrices(PXAdapter adapter)
7676
Actions.PressSave();
7777

7878
var repairPriceItem = RepairPrices.Current;
79-
//Execute ValidatePrices method asynchronously using PXLongOperation.StartOperation
80-
PXLongOperation.StartOperation(this, () => ValidatePrices(repairPriceItem));
79+
// Execute the ValidatePrices method asynchronously by
80+
// using LongOperationManager.StartOperation
81+
LongOperationManager.StartOperation(cancellationToken =>
82+
{
83+
ValidatePrices(repairPriceItem);
84+
});
8185

8286
// Return the local list variable.
8387
return list;
8488
}
8589
#endregion
86-
87-
private static void ValidatePrices(RSSVRepairPrice repairPriceItem)
90+
91+
92+
private static void ValidatePrices(RSSVRepairPrice repairPriceItem)
8893
{
8994
/* Create an instance of the RSSVRepairPriceMaint graph and set
9095
the Current property of its RepairPrices view.*/

0 commit comments

Comments
 (0)