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
View originalHi,
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
View originalHere’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!")
}
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.
Hi
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?
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.