Skip to main content

Hello everyone,

 

with the rising trend on data privacy, how can I disable the ‘export to excel’ button on the customer generic list for most users? Thank you.

 

Kind regards,

mrivera67

Hi @mrivera67  I just worked on the Sales Orders screen, Document Details grid, I can able to disable the export excel button using below code.

Action Name: ExportExcel

 

   <px:PXToolBarButton Text="" CommandSourceID="ds" CommandName="ExportExcel" Enabled="false" />

 

 


@mrivera67 You can set the access rights using the  Access rights by role or Access rights by user to disable the export option. 
Below is the reference to set the access rights by role. 

 

 

Happy Coding!


@Naveen B , where do I exactly put the code you shared?

 

Thank you!


Hi @mrivera67  I have disabled the Export Excel button in Sales Order screen → Document Details tab.

 

Can you please let me know, in which screen do you want to disable this Export Excel button? 


Why is this still not working on my instance? I am running 2021 r2.


@mrivera67 

You can try to revoke the access to export option in the GI.

Navigate to the access rights screen and then navigate according to the below path.

Receivables > Customers > Customer > Export (BAccount$ExportExcel) and select view only.

 


Reply