In customizations prior to 2021 R1, I was able to add custom methods to the Actions drop down by using the following:
public override void Initialize()
{
base.Initialize();
Base.actions.AddMenuAction(NewMethod);
}
Now, it looks like there is no such property as Base.actions... How do I do this now?
Thanks...
Check if the action menu has another name:
Base.Action.AddMenuAction(Share);
The type Base.Actions
is not an action type, it is of type PXActionCollection
.
Possible values are:
The action name can be different, it depends on the name of the action menu in the graph you are extending.
There has been many changes to action menu with the introduction of the workflow system. It is now recommended to use the workflow system to add new actions.
Workflow training: https://openuni.acumatica.com/courses/reporting/w150-workflows/
Workflow action configuration, help reference: https://help-2021r1.acumatica.com/Help?ScreenId=ShowWiki&pageid=cbbac950-4172-42c7-b950-a589a87df249