In the initialize method you can do:
Base.action.AddMenuAction(<your action>)
This should add your action button to the actions dropdown.
Also if you want to define your own action dropdown in a graph you only need to do the following:
PXAction<PrimaryDAC> action;
[PXButton(MenuAutoOpen = true)]
[PXUIField(DisplayName = "Action Dropdown", MapViewRights = PXCacheRights.Select,
MapEnableRights = PXCacheRights.Select)]
protected virtual void Action() { }
The MenuAutoOpen property being the key here. Then you can use the same method as stated above to add actions to the action dropdown.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…