Dissable Acumatica field
There is two ways how you can disable a field based on some condition in Acumatica
The most common way is by SetEnable method for PXUIFieldAttribute and it’s look like this
PXUIFieldAttribute.SetEnabled<DAC.DACfield>(View.Cache, row, true/false);
But this is one more way of doing this by adding attribute to the dac field
[PXUIEnabled(typeof(Where<DAC.DACField, Equal<True/False>>))]
For example:
#region StartDate/Time
[PXDBDateAndTime(
DisplayNameDate = "Start Date",
DisplayNameTime = "Start Time")]
[PXUIEnabled(typeof(Where<FMOrganizationalUnits.isonAutoIncrement, Equal<False>>))]
public DateTime? StartDateTime { get; set; }
public abstract class startDateTime : PX.Data.BQL.BqlDateTime.Field<startDateTime> { }
#endregion
In that case the most common way will not help you and the one of possible ways how you can disable fields that are not disabling by SetDefault method try to use PXUIEnable attribute