Skip to main content
Solved

Action is not shown on screen

  • Jun 25, 2022 9:05 AM UTC
  • 2 replies
  • 290 views
  • Translate All

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

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.

View original

2 replies

aaghaei
Captain II
Forum|alt.badge.img+11
  • Author
  • Captain II
  • Answer
  • Jun 26, 2022 7:34 AM UTC

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

Translate

Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • Jun 28, 2022 9:53 PM UTC

Thank you for sharing your solution @aaghaei !

Translate