问题
Is it possible to add new additional button "Upload from file" in header of Document Detail transaction in Purchase Receipt like the following screenshot ?
I want to implement the same way like in screen Purchase Order, please refer to the following screenshot.
Does anyone knows how to provide this goal ?
Thanks.
回答1:
I create an extension of POReceiptEntry, and use the following codes:
public class POReceiptEntry_Extension : PXGraphExtension<POReceiptEntry> { #region Event Handlers [PXViewName(Messages.POReceiptLine)] [PXImport(typeof(POReceipt))] [PXCopyPasteHiddenFields(typeof(POReceiptLine.allowComplete))] public PXSelect<POReceiptLine, Where<POReceiptLine.receiptType, Equal<Current<POReceipt.receiptType>>, And<POReceiptLine.receiptNbr, Equal<Current<POReceipt.receiptNbr>>>>, OrderBy<Asc<POReceiptLine.receiptType, Asc<POReceiptLine.receiptNbr, Asc<POReceiptLine.lineNbr>>>>> Transactions; #endregion }
And then Validate and Publish my customize project.
Enable the "Auto Upload" of Layout Editor screen. Please refer to the following screenshot.
- Validate and publish the customization to implement the customization
来源:https://stackoverflow.com/questions/48922510/create-additional-upload-from-file-button-in-header-of-detail-grid-purchase-re