Skip to main content
Solved

Button missing (add Action) in Acumatica 2020 R1

  • 2 December 2020
  • 3 replies
  • 1116 views

SadokHanini
Freshman II

 

 

there’s another way to create action in 2020  R1 ?
or i’m missing something

 

Thanks.

Best answer by Naveen Boga

Hi @SadokHanini ,

Please use the below example to add a new action in “Actions” menu.


Example from SOOrderEntry Graph Extension.

 

 public class SOOrderEntryExt : PXGraphExtension<SOOrderEntry>
    {
        public override void Initialize()
        {
            base.Initialize();
            Base.action.AddMenuAction(validateAddress);
        }



   public PXAction<SOOrder> validateAddress;
        [PXButton]
        [PXUIField(DisplayName = "Validate  Address", MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select, Enabled = true)]
        protected virtual void ValidateAddress()
        {
                         // Button logic here
​​​​​​​ 
        }
    }
View original
Did this topic help you find an answer to your question?

3 replies

Irina
Community Manager
Forum|alt.badge.img+8
  • Acumatica Support Analyst
  • 503 replies
  • December 2, 2020

Hello Sadok!

This functionality was replaced as follows.

In Acumatica ERP 2020 R1, a developer can configure fields and add new actions or customize exiting actions by using the Field Editor and Action Editor of the Customization Project Editor. The editors can be accessed in the Screens node of the navigation pane.

Modification of the Disabled, Hidden, and Required properties was previously available on the Main Properties tab of the Screen Editor. The Main Properties tab of the Screen Editor has been removed.

For more info, refer to the Customization: Extended Editors for Fields and Actions topic in Acumatica 202 R1 Initial Release notes.

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3377 replies
  • Answer
  • December 2, 2020

Hi @SadokHanini ,

Please use the below example to add a new action in “Actions” menu.


Example from SOOrderEntry Graph Extension.

 

 public class SOOrderEntryExt : PXGraphExtension<SOOrderEntry>
    {
        public override void Initialize()
        {
            base.Initialize();
            Base.action.AddMenuAction(validateAddress);
        }



   public PXAction<SOOrder> validateAddress;
        [PXButton]
        [PXUIField(DisplayName = "Validate  Address", MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select, Enabled = true)]
        protected virtual void ValidateAddress()
        {
                         // Button logic here
​​​​​​​ 
        }
    }

SadokHanini
Freshman II
  • Author
  • Freshman II
  • 42 replies
  • December 3, 2020
Irina wrote:

Hello Sadok!

This functionality was replaced as follows.

In Acumatica ERP 2020 R1, a developer can configure fields and add new actions or customize exiting actions by using the Field Editor and Action Editor of the Customization Project Editor. The editors can be accessed in the Screens node of the navigation pane.

Modification of the Disabled, Hidden, and Required properties was previously available on the Main Properties tab of the Screen Editor. The Main Properties tab of the Screen Editor has been removed.

For more info, refer to the Customization: Extended Editors for Fields and Actions topic in Acumatica 202 R1 Initial Release notes.

 

Thanks :D


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