I need to make some fields like Promise On Date, POLine Quantity editable when the Purchase Order is on the specific Purchase Order status is Open.
How can I achieve this ??
Thanks
Best answer by Vignesh Ponnusamy
View originalI need to make some fields like Promise On Date, POLine Quantity editable when the Purchase Order is on the specific Purchase Order status is Open.
How can I achieve this ??
Thanks
Best answer by Vignesh Ponnusamy
View originalHi
You can try the following step to enable the field when the document is in Open status.
public class POOrderEntry_Extension : PXGraphExtension<PX.Objects.PO.POOrderEntry>
{
#region Event Handlers
protected void POOrder_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected baseHandler)
{
baseHandler?.Invoke(cache, e);
var row = (POOrder)e.Row;
PXUIFieldAttribute.SetEnabled<POOrder.expectedDate>(cache, row, true);
}
protected void POLine_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected baseHandler)
{
baseHandler?.Invoke(cache, e);
var row = (POLine)e.Row;
PXUIFieldAttribute.SetEnabled<POLine.orderQty>(cache, row, true);
}
#endregion
}
Please note the Purchase Order is set to Open status after being approved, so enabling these fields in the open status will allow the users update even after the purchase order is approved. Thanks,
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.