
I need to check the checkbox Allocation Apply which is a User-Defined Attribute in SOOrder when ever there is any change in the orderQuantity.
I also want to disable the Allocation Apply Field
public class SOOrderEntry_Extension : PXGraphExtension<PX.Objects.SO.SOOrderEntry>
{
protected void _(Events.FieldUpdating<SOLine, SOLine.orderQty> e)
{
var row = e.Row;
// Need to udpate the Apply field when ever there any change in the OrderQty
// Allocation Apply field is in SOOrder
}
}
// The below Solution isn’t working
SOOrder Order = PXSelect<SOOrder, Where<
SOOrder.orderNbr, Equal<Required<SOOrder.orderNbr>>
>
>.Select(Base, row.OrderNbr);
var isAllcocateed = e.Cache.GetValueExt(Order, "AttributeALLOCAPPLY");