Skip to main content
Answer

Enabling a Field

  • February 2, 2023
  • 2 replies
  • 255 views

Michael Ndungi
Varsity I
Forum|alt.badge.img

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.

Best answer by Naveen Boga

@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.

 

 

 

2 replies

Forum|alt.badge.img+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.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • February 2, 2023

@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.