Loading ...

How to disable copy paste buttons

How to remove the copy-paste functionality from a screen. Let's use the example of Sales Order(SO301000)



The code below will take the copy-paste functionallity off the screen.


public class SOOrderEntryExtension : PXGraphExtension<SOOrderEntry>

{

    public override void Initialize()

    {

        base.Initialize();

        Base.CopyPaste.SetVisible(false);

    }

}

 

·        The Initialize method is called when the graph is initialized. The base.Initialize() ensures that the standard initialization logic from the parent class (PXGraphExtension) is executed.

·        Base.CopyPaste.SetVisible(false); is the key line in this customization. The CopyPaste button is part of the Acumatica interface and is typically used for importing and exporting data. By calling SetVisible(false), we hide the Copy-Paste button on the Sales Order Entry screen. This ensures that users will not see or be able to use this button.



We can disable other buttons in the same way

Be the first to rate this post

  • Currently 0.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5