Solved

Enabling a Field

  • 2 February 2023
  • 2 replies
  • 135 views

Userlevel 4
Badge

Hello Everyone,

Have tried to enable the following field in contract management but I’m unable to.

Kindly assist

 

All responses will be highly appreciated.

icon

Best answer by Naveen Boga 2 February 2023, 08:16

View original

2 replies

Userlevel 4
Badge +1

Hi @development93 ,

Please write the RowSelected Event Handler to enable/disable or show/ hide the required fields.

Example:

 protected virtual void _(Events.RowSelected< SOLine > e)
        {
           var row = (SOLine) e.Row;

          if (row == null) return; 

PXUIFieldAttribute.SetEnabled<SOLine.myField>(
sender, e.row, false);

 

           
        }
 

 

I hope it helps you.

Moulali Shaik.

Userlevel 7
Badge +17

@development93  These fields will be gets enabled from the respective Contract Template screen.

If Enable Override Formulas in Contracts field is checked

Please find the screenshot for reference.

 

 

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved