Skip to main content
Answer

Action is not shown on screen

  • June 25, 2022
  • 2 replies
  • 237 views

aaghaei
Captain II
Forum|alt.badge.img+10

I have an action that I’m using it on multiple screens. This action appears on all screens and works as expected. The only exception I am facing are “POOrderEntry” and “SubcontractEntry” screens that doesn’t show the Action on screen. Here is the Action:

public PXAction<POOrder> customRoute;
[PXButton(CommitChanges = true, Category = Messages.ApprovalCategory, DisplayOnMainToolbar = true, IsLockedOnToolbar = true)]
[PXUIField(DisplayName = EPMessages.CustomRoute, MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select)]

protected virtual IEnumerable CustomRoute(PXAdapter adapter)
{
Base.Save.Press();

// Do stuff here

return adapter.Get();
}

Can anyone help why this works on all screens but these two?

Best answer by aaghaei

UPDATE: My bad. I figured it. I had a SetVisible on RowSelected Event handler that was hiding this action. It is resolved.

2 replies

aaghaei
Captain II
Forum|alt.badge.img+10
  • Author
  • Captain II
  • Answer
  • June 26, 2022

UPDATE: My bad. I figured it. I had a SetVisible on RowSelected Event handler that was hiding this action. It is resolved.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • June 28, 2022

Thank you for sharing your solution @aaghaei !