public MergePrepareProcess() { Items.SetProcessCaption(Messages.Prepare); Items.SetProcessAllCaption(Messages.PrepareAll); Items.SetSelected <CRMerge.selected>(); PXProcessingStep[] targets = PXAutomation.GetProcessingSteps(this); if (targets.Length > 0) { Items.SetProcessTarget(targets[0].GraphName, targets.Length > 1 ? null : targets[0].Name, targets[0].Actions[0].Name, targets[0].Actions[0].Menus[0], null, null); } else { throw new PXScreenMisconfigurationException(SO.Messages.MissingMassProcessWorkFlow); } Actions.Move("Process", "Cancel"); }