Contents tagged with How to block column in Acumatica or just one value in Acumatica
I want to share with you how to block some columns in Acumatica.
You can do it with the PXUIFieldAttribute.SetEnabled method.
Let's say you have DAC PRTran with column earningType and values of PRTran you get from PaySlipDetails view. Then you can block whole column with the following call:
PXUIFieldAttribute.SetEnabled<PRTran.earningType>(PaySlipDetails.Cache, null, isEnabled);
Another question which sometime appears is how to block single record value in column.
The solution is the following:
row = .... here goes your logic which will get PRTran for which you need to make blocking
PXUIFieldAttribute.SetEnabled<PRTran.earningType>(PaySlipDetails.Cache, row, false); more