Solved

Disable default actions in grid based on a condition

  • 4 December 2023
  • 2 replies
  • 62 views

Userlevel 2
Badge

I want to disable all of these actions for my custom grid on a particular status of my parent document. How it can be done please advice

 

Thanks

icon

Best answer by Naveen Boga 4 December 2023, 05:52

View original

2 replies

Userlevel 7
Badge +8

In your master DAC RowSelected event handler set the child View AllowInsert AllowUpdate And AllowDelete to false when condition met. For example if your grid view name is ChildView theN set the above mentioned properties like

ChildView.AllowInsert = false; if your code is in a graph ext then add Base. before your view name.

Userlevel 7
Badge +17

@param2022  Write a condition with the below code in the Row_Selected Event

 

GRIDView.AllowInsert = false; // To disable the Insert button

GRIDView.AllowUpdate = false; // To disable the rows to update the records

GRIDView.AllowDelete = false; // To disable the delete button 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved