Skip to main content
Answer

Fixing acuminator PX1072 warning inside static methods

  • March 22, 2024
  • 2 replies
  • 117 views

amitr70
Semi-Pro I
Forum|alt.badge.img

 I need to fix acuminator warnings of type PX1072. Here I have a custom graph written in which there’s a static method. Inside this static method, I need to use graph in BQL statements. Since its custom graph with static method, so I cannot use this and Base as well. Initial code is using new PxGraph() as a wrokaround. Below is the screenshot.

 

Also wanted to understand if calling a delegate having update/insert statements at various places inside row selected is good or bad? I am using 2024R1 Preview as my instance.

Best answer by amitr70

Solution is to use the graph associated with the current maint only. No need to create a new instance each and every time.

2 replies

amitr70
Semi-Pro I
Forum|alt.badge.img
  • Author
  • Semi-Pro I
  • Answer
  • May 11, 2024

Solution is to use the graph associated with the current maint only. No need to create a new instance each and every time.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • May 13, 2024

Thank you for sharing your solution with the community @amitr70!