Skip to content

Instantly share code, notes, and snippets.

@lekker-solutions
Created October 20, 2021 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lekker-solutions/33552d7e645905d0a995a9df7f56db49 to your computer and use it in GitHub Desktop.
Save lekker-solutions/33552d7e645905d0a995a9df7f56db49 to your computer and use it in GitHub Desktop.
Parallel Processing Screen
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using PX.Common;
using PX.Data;
using PX.Objects.CS;
using PX.Objects.GL;
namespace ParallelTest
{
public class ParallelTester : PXGraph<ParallelTester>
{
public PXSave<Batch> Save;
public PXCancel<Batch> Cancel;
public PXProcessing<Batch> DetailsView;
public ParallelTester()
{
DetailsView.SetProcessDelegate(ProcessList);
DetailsView.ParallelProcessingOptions = (options) =>
{
options.IsEnabled = true;
options.BatchSize = 10;
};
}
public static void ProcessList(List<Batch> list)
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment