Skip to main content
Solved

What is PXNonInstantiatedExtension ?


Forum|alt.badge.img

When use PXNonInstantiatedExtension. How to use it ?

Best answer by Naveen Boga

@kevinheng21  

In Acumatica, PXNonInstantiatedExtension is a class that allows you to create an extension without instantiating it during the graph initialization process. When you create an extension for an Acumatica graph, by default, an instance of that extension is created during the graph's initialization. However, there might be scenarios where you want to control when the extension is instantiated.

By inheriting from PXNonInstantiatedExtension, you can defer the instantiation of the extension until it is explicitly requested. This can be useful when you want to optimize performance by avoiding the creation of extensions until they are actually needed during the processing of a specific action or event.

 

Hope this information helps!!

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

2 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3410 replies
  • Answer
  • December 15, 2023

@kevinheng21  

In Acumatica, PXNonInstantiatedExtension is a class that allows you to create an extension without instantiating it during the graph initialization process. When you create an extension for an Acumatica graph, by default, an instance of that extension is created during the graph's initialization. However, there might be scenarios where you want to control when the extension is instantiated.

By inheriting from PXNonInstantiatedExtension, you can defer the instantiation of the extension until it is explicitly requested. This can be useful when you want to optimize performance by avoiding the creation of extensions until they are actually needed during the processing of a specific action or event.

 

Hope this information helps!!


Sagar Greytrix
Captain II
Forum|alt.badge.img+3

Hi @kevinheng21 ,

PXNonInstantiatedExtension in Acumatica lets you add extra features to data items without needing to create separate instances for each feature. It's a way to extend data structures without having to create separate copies for each extension.

Hope this helps.!

Regards,

Sagar


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