I am upgrading a project from 2020R1 to 2021R2.
In my SOOrderEntry extension, the Override on the actions is not firing. I know the extension is firing because other code gets hit on a breakpoint.
The action I am overriding is the Create Shipment item. This is what it looks like in the 2020R1:
This is what it looks like in 2021R2. The Create Shipment button is displayed in the menu bar and it is not selected from a drop down list.
I am thinking this may be the reason why my override does not fire.
This is the extension
public class SOOrderEntrySSGExt : PXGraphExtension<SOOrderEntry>
This ActionDelegate signature changed. The only thing I changed to make it compile successfully is that I changed siteCD to siteID in the signature.
#region Overridden Methods
public delegate IEnumerable ActionDelegate(PXAdapter adapter, Nullable<Int32> actionID, Nullable<DateTime> shipDate, Nullable<Int32> siteID, String operation, String ActionDelegateName);
//Previous baseMethod(adapter, actionID, shipDate, siteCD, operation, ActionName);
public IEnumerable Action(PXAdapter adapter, Nullable<Int32> actionID, Nullable<DateTime> shipDate, Nullable<Int32> siteID, String operation, String ActionName, ActionDelegate baseMethod)
When I put a breakpoint on this it does not fire. Does anyone have any ideas why?
With this new “menu”, do I need to be overriding some other method?
Best answer by Dmitrii NaumovView original