Skip to main content
Solved

Adding a Button

  • 27 January 2021
  • 5 replies
  • 1700 views

  • Freshman I
  • 1 reply

Hello team,

I am new to the software. I busy building my own screen.

I have added a button on my screen, and the action i want it to perform is to clear all my textbox.

 

Where or how do i perform the action for this.   

Please i am struggling a lot.

Regards M.C. 

Best answer by Naveen Boga

Hi @mc37 

Below is a sample example to add a button in a graph.

public class TestGraph : PXGraph<TestGraph>
    {
          public PXAction<DACName> TestConnection; 
        [PXButton]
        [PXUIField(DisplayName = “TestConnection”, MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select, Enabled = false)]
        protected virtual IEnumerable testConnection(PXAdapter adapter)
        {
                      // logic here


          return adapter.Get();
        }
    }


Hope this helps!!

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

5 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3377 replies
  • Answer
  • January 27, 2021

Hi @mc37 

Below is a sample example to add a button in a graph.

public class TestGraph : PXGraph<TestGraph>
    {
          public PXAction<DACName> TestConnection; 
        [PXButton]
        [PXUIField(DisplayName = “TestConnection”, MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select, Enabled = false)]
        protected virtual IEnumerable testConnection(PXAdapter adapter)
        {
                      // logic here


          return adapter.Get();
        }
    }


Hope this helps!!


bjeter78
Freshman II
Forum|alt.badge.img
  • Freshman II
  • 48 replies
  • January 24, 2022

I am new to Acumatica, and I have to change a name on a command button that was customized in the Construction module. Can anyone give me direction on where to go to perform this change?


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 680 replies
  • January 25, 2022

Hi @bjeter94 

Please refer to the below document.

Renaming Workspace, Menu Item, Form, Action and Field, Part 3 — Acumatica Engineering

Hope this will help you.


bjeter78
Freshman II
Forum|alt.badge.img
  • Freshman II
  • 48 replies
  • January 25, 2022

Thank you it did help me get closer. Now that I am able to get that far, I see it is “form-specific and not an action item. Any further ideas? I appreciate your help!

Barbie

 

 


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 680 replies
  • January 25, 2022

Hi @bjeter94 

can you try with the Text property?
 

 


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