Solved

How to add dropdown to the main toolbar

  • 25 February 2021
  • 5 replies
  • 250 views

Userlevel 1

Hi,

I am trying to add a dropdown control with dynamic values to the main toolbar of any screen, next to Actions or  Reports menu.

Any idea or suggestions?

icon

Best answer by Naveen Boga 25 February 2021, 16:42

View original

5 replies

Userlevel 7
Badge +10

Here’s an example for you Krunal:

 

public MyGraph()
{
MyMenu.AddMenuAction(Item1);
MyMenu.AddMenuAction(Item2);
}

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)]
[PXButton]
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)]
[PXButton]
public virtual IEnumerable item2(PXAdapter adapter)
{
throw new PXException("Item 2 clicked!")
}

 

Userlevel 1

Hi Gabriel,

Thanks for your reply. I am not looking for Menu item but instead looking to add the dynamic dropdown, something like Sales Order Status to the main toolbar.

For example, in below image, I have a dropdown “Select” which I want to move in main toolbar area. Not sure if it is even possible.

 

Userlevel 7
Badge +19

Hi @KrunalDoshi ,

As per my knowledge, this is NOT possible (I may be wrong here), as all the controls should be bind to the FormView.

 

Can you please explain the scenario/requirement, to have this dropdown on the tool bar?

Userlevel 7
Badge +10

@Naveen B is right, now possible, and would break UI/UX concepts used elsewhere in Acumatica anyway.

Userlevel 1

Thanks @Gabriel Michaud and @Naveen B 

It was worth a post to see if anyone has any idea there. Normal dropdown on the form would do it for now.

Reply


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