How to modify print invoice button as a report dropdown button which contain list of reports(Template)

  • 30 October 2023
  • 1 reply

Userlevel 4

Currently, a set of reports have been designed based on the type as Invoice, Debit Memo, Credit Memo and etc. Currently these reports can be accessed by the SO workspace menu items. Please check the below screenshot. 

Now user needs to directly run the appropriate report without navigating to workspace menu items. That means when user click the “PRINT INVOICE” button the pre designed set of report should be listed down like a dropdown and after selecting the relevant report, the report should be displayed.

So if you can provide guidance to perform this customization, it is highly appreciated. Thank you.


Best answer by darylbowman 30 October 2023, 18:18

View original

1 reply

Badge +11

 I believe you’re asking how to add a menu button which can hold other action buttons.

This code came from here

public MyGraph()

public PXAction<SomeDAC> MyMenu;
[PXUIField(DisplayName = "My Menu")]
[PXButton(MenuAutoOpen = true)]
protected virtual IEnumerable inquiresMenu(PXAdapter adapter)
return adapter.Get();

public PXAction<SomeDAC> Item1;
[PXUIField(DisplayName = "Item 1", MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select)]
public virtual IEnumerable item1(PXAdapter adapter)
throw new PXException("Item 1 clicked!")

public PXAction<SomeDAC> Item2;
[PXUIField(DisplayName = "Item 2", MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select)]
public virtual IEnumerable item2(PXAdapter adapter)
throw new PXException("Item 2 clicked!")



About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved