Skip to main content
Solved

Fixing acuminator PX1072 warning inside static methods


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.

View original
Did this topic help you find an answer to your question?

2 replies

amitr70
Semi-Pro I
Forum|alt.badge.img
  • Author
  • Semi-Pro I
  • 30 replies
  • 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
  • 2757 replies
  • May 13, 2024

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings