Skip to main content
Solved

Fixing acuminator PX1072 warning inside static methods

  • 22 March 2024
  • 2 replies
  • 78 views

 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.

2 replies

Userlevel 1
Badge

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

Userlevel 7
Badge

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

Reply