Skip to main content
Answer

Append custom columns to PXCopyPasteHiddenFields attribute on Base Graph

  • March 13, 2025
  • 5 replies
  • 126 views

Kyle Vanderstoep
Varsity I
Forum|alt.badge.img+1

Hi,

 

I am adding a few custom fields to ARInvoice and ARPayment. How can I prevent these fields from being picked up in the copy/paste functionality? 

I tried redefining the data view in a graph extension with a new PXCopyPasteHiddenFields attribute, but it did not work.

Best answer by Naveen Boga

@Kyle Vanderstoep You might already be aware of this. To prevent custom fields from being copied using the Copy/Paste functionality, you can redefine the view as shown below and include PXCopyPasteHiddenFields(typeof(APInvoiceExt.usrTestField)) as demonstrated in the example.

 

    [PXCopyPasteHiddenFields(
        typeof(APInvoice.paySel), 
        typeof(APInvoice.payDate),

 typeof(APInvoiceExt.usrTestField),
        typeof(APInvoice.intercompanyInvoiceNoteID))]
    public PXSelect<APInvoice, Where<APInvoice.docType, Equal<Current<APInvoice.docType>>, And<APInvoice.refNbr, Equal<Current<APInvoice.refNbr>>>>> CurrentDocument;

5 replies

Forum|alt.badge.img+7
  • Captain II
  • March 13, 2025

Can you show us the code for the re-declared view? I’m using the method on the SO Order Entry screen successfully.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • March 17, 2025

@Kyle Vanderstoep You might already be aware of this. To prevent custom fields from being copied using the Copy/Paste functionality, you can redefine the view as shown below and include PXCopyPasteHiddenFields(typeof(APInvoiceExt.usrTestField)) as demonstrated in the example.

 

    [PXCopyPasteHiddenFields(
        typeof(APInvoice.paySel), 
        typeof(APInvoice.payDate),

 typeof(APInvoiceExt.usrTestField),
        typeof(APInvoice.intercompanyInvoiceNoteID))]
    public PXSelect<APInvoice, Where<APInvoice.docType, Equal<Current<APInvoice.docType>>, And<APInvoice.refNbr, Equal<Current<APInvoice.refNbr>>>>> CurrentDocument;


darylbowman
Captain II
Forum|alt.badge.img+15

Does the graph’s view already have a PXCopyPasteHiddenFields attribute?


Joe Schmucker
Captain II
Forum|alt.badge.img+3

I want to not copy/paste the Lot/Serial Number field on Purchase Receipts screen.  It is not a custom field.

Redefining the original View seems like a bad idea.  What if Acumatica changes the Base View?

 


darylbowman
Captain II
Forum|alt.badge.img+15

It's not ideal. I'd love for Acumatica to provide another way.