Create additional “upload from file” button in header of Detail Grid Purchase Receipt in Acumatica

只愿长相守 提交于 2020-01-06 08:23:38

问题


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:


  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
    }
    
  2. And then Validate and Publish my customize project.

  3. Enable the "Auto Upload" of Layout Editor screen. Please refer to the following screenshot.

  1. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!