I need custom field that I added to Sales Order screen to be always enabled even order has been shipped, order having "Shipping" status. I have extended SOOrder_RowSelected method to enable the custom field but the field is still disabled when the order is in "Shipping" status.
public class SOOrderEntryExt : PXGraphExtension<SOOrderEntry>
{
public virtual void SOOrder_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected del)
{
SOOrder row = e.Row as SOOrder;
if (row == null)
return;
if (del != null)
del(cache, e);
PXUIFieldAttribute.SetEnabled<SOOrderExt.usrContact>(cache, null, true);
}
}