Skip to main content
Solved

How to Move Customized Action/Button place in existing screen

  • October 12, 2020
  • 4 replies
  • 819 views

Naveen Boga
Captain II
Forum|alt.badge.img+19

Hi Everyone,

We have requirement to add a new “Back Button” to the existing screen i.e. Preowned Vehicles Returns. I have added that button it is coming at end, we would like to move this button before Save action.

Could you please provide your thoughts here.

Best answer by Dhiren Chhapgar

You could use [Graph].Actions.Move method to arrange toolbar buttons.

Example:-

public class ReOrderActionExt : PXGraphExtension<SOOrderEntry>
{
    public override void Initialize()
    {
        Base.Actions.Move(nameof(Base.action), nameof(Base.quickProcess), true);
    }
}

I assume clicking on “Back button” should navigate to a screen listing pre-owned vehicles returns?

If that’s the case then, you should implement primary listing screen with entry point to your data entry screen. Framework will have “Back button” for you. You can refer out-of-box SO3010PL GI implementation.

View original
Did this topic help you find an answer to your question?

4 replies

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

@naveenb74 the buttons are displayed in the order they’re declared in your graph. The PXGraph<Graph, PrimaryView> constructor defines the standard navigation buttons, and they show up before any other button. You could use PXGraph<Graph> and declare all the buttons (save, cancel, add, delete, etc...) yourself. Brendan’s answer on this StackOverflow question provides more information as well.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Author
  • Captain II
  • 3407 replies
  • October 14, 2020

Hi @Gabriel Michaud,

This screen is actually inherited from the Purchase Receipts screen (default Acumatica existing screen). 
As we have Graph declaration as like this - POReceiptEntry : PXGraph<POReceiptEntry, POReceipt>

getting that button at last.  In this case, how can we achieve this requirement? Please provide your thoughts.

 

 


Dhiren Chhapgar
Community Manager
Forum|alt.badge.img
  • Director – Customization Services, Special Projects
  • 13 replies
  • Answer
  • October 14, 2020

You could use [Graph].Actions.Move method to arrange toolbar buttons.

Example:-

public class ReOrderActionExt : PXGraphExtension<SOOrderEntry>
{
    public override void Initialize()
    {
        Base.Actions.Move(nameof(Base.action), nameof(Base.quickProcess), true);
    }
}

I assume clicking on “Back button” should navigate to a screen listing pre-owned vehicles returns?

If that’s the case then, you should implement primary listing screen with entry point to your data entry screen. Framework will have “Back button” for you. You can refer out-of-box SO3010PL GI implementation.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Author
  • Captain II
  • 3407 replies
  • October 19, 2020

Hi Dhiren, 

When we click on Back Button is redirecting to the list screen only but it does NOT default Generic Inquiry screen but it is a Custom Inquiry.

The above-given code is working as expected. Thank You very Much.


When I started my career on the Acumatica platform I learned many things from you when I worked on Amazon. Thanks a lot, Dhiren. :) 

 

Best Regards,
Naveen B

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings