Skip to main content
Answer

Missing standard toolbars (insert, delete, etc) on custom screen.

  • March 23, 2022
  • 4 replies
  • 684 views

Forum|alt.badge.img+1

I must be missing something simple, but I cannot figure out how to add the additional standard toolbar buttons (insert, delete, move next, etc.)  to my custom screen.  My screen shows the Save and Cancel standard toolbar buttons, but not the rest.

I’ve experimented with setting various properties for the datasource and form, but have not yet figured it out.

I thought maybe I selected the wrong template, but I created another screen to test and it also only had save and cancel.  Tried reading through the T220 training pdf and did not see anything.

Best answer by Naveen Boga

Hi @scottstanaland12  Since this is a custom screen and to get the Toolbar buttons it is not required to declare each action in the graph. 

Please create a graph like below, default Acumatica will bring all these actions.

//provide a Primary DAC in the Graph in declaration

public class MyTestGraph : PXGraph<MyTestGraph, MYPrimaryDAC

    public PXSelect<MYPrimaryDAC> PrimaryDACView;

}

4 replies

Forum|alt.badge.img+1

Nevermind, I think I just figured it out.  I had to add the additional declarations for those buttons in my graph.  I don’t remember seeing that in any of the Acumatica code.

 

        public PXInsert<MyDac> Insert;
        public PXDelete<MyDac> Delete;
        public PXNext<MyDac> Next;
        public PXPrevious <MyDac> Previous;
        public PXFirst<MyDac> First;
        public PXLast<MyDac> Last;


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • March 23, 2022

@scottstanaland12  - thank you for sharing the resolution!


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • March 24, 2022

Hi @scottstanaland12  Since this is a custom screen and to get the Toolbar buttons it is not required to declare each action in the graph. 

Please create a graph like below, default Acumatica will bring all these actions.

//provide a Primary DAC in the Graph in declaration

public class MyTestGraph : PXGraph<MyTestGraph, MYPrimaryDAC

    public PXSelect<MYPrimaryDAC> PrimaryDACView;

}


Forum|alt.badge.img+1

@Naveen Boga Thanks for the note.  I added my primary DAC to the graph extension, and I no longer had to define all the actions.

Scott