Skip to main content
Answer

What is PXNonInstantiatedExtension ?

  • December 15, 2023
  • 2 replies
  • 105 views

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!!

2 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 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