Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*/
Expand Down