Skip to main content
Answer

How to add dropdown to the main toolbar

  • February 25, 2021
  • 5 replies
  • 291 views

KrunalDoshi
Freshman II

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?

Best answer by Naveen Boga

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?

5 replies

Gabriel Michaud
Captain II
Forum|alt.badge.img+11

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!")
}

 


KrunalDoshi
Freshman II
  • Author
  • Freshman II
  • February 25, 2021

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.

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • February 25, 2021

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?


Gabriel Michaud
Captain II
Forum|alt.badge.img+11

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


KrunalDoshi
Freshman II
  • Author
  • Freshman II
  • February 25, 2021

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.