'Getting Error while Overriding GenerateProductionOrders Method of MRPDisplay graph in acumatica

Getting Error while Overriding GenerateProductionOrders Method of MRPDisplay graph in acumatica. I have Extend MRPdisplay graph.

  protected delegate void GenerateProductionOrdersDelegate(List<AMOrderCrossRef> list);
 [PXOverride]
protected virtual void GenerateProductionOrders(List<AMOrderCrossRef> list, GenerateProductionOrdersDelegate baseMethod) {
  if(list == null || list.Count == 0) {
    return;
  }

  if(list.Count == 1) {
    PXLongOperation.StartOperation(this, () => {
      CreateProductionOrders(PXGraph.CreateInstance<ProdMaint>(), list);
    });
    return;
  }

}



Solution 1:[1]

please try this one:

  public class MRPDisplay_Extension : PXGraphExtension<MRPDisplay>
  {
    [PXOverride]
    public void GenerateProductionOrders(List<AMOrderCrossRef> list, Action<List<AMOrderCrossRef>> baseMethod)
    {
      baseMethod(list);
    }
  }

You can always go to the Code editor and check if you can override or not the method:

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 diegoapereza