I have created a field in PO Header, it contains certain values, while creating a new document using “Copy” function, how can i restrict copying of that UDF value.
I have created a field in PO Header, it contains certain values, while creating a new document using “Copy” function, how can i restrict copying of that UDF value.
Best answer by Naveen Boga
Hi
Replace usrTestField1 with your Custom Field.
public class POOrderEntryExt : PXGraphExtension<POOrderEntry>
{
[PXViewName(PX.Objects.PO.Messages.POOrder)]
[PXCopyPasteHiddenFields(typeof(POOrderExt.usrTestField1), typeof(POOrderExt.usrTestField2))]
public PXSelectJoin<POOrder,
LeftJoinSingleTable<Vendor, On<Vendor.bAccountID, Equal<POOrder.vendorID>>>,
Where<POOrder.orderType, Equal<Optional<POOrder.orderType>>,
And<Where<Vendor.bAccountID, IsNull,
Or<Match<Vendor, Current<AccessInfo.userName>>>>>>> Document;
[PXCopyPasteHiddenFields(typeof(POOrderExt.usrTestField1), typeof(POOrderExt.usrTestField2))]
public PXSelect<POOrder, Where<POOrder.orderType, Equal<Current<POOrder.orderType>>,
And<POOrder.orderNbr, Equal<Current<POOrder.orderNbr>>>>> CurrentDocument;
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.