Solved

Override Action in INAdjustmentEntry

  • 17 August 2022
  • 4 replies
  • 295 views

Userlevel 2
Badge

Hi,

I created a graph extension for the  Inventory Adjustment window, but when I try to extend the AddInvSelBySite action, I don’t find it in the class. This class inherit from the INRegisterEntryBase class. How I can extend this action? I need to get the selected records and the quantities from  the Inventory Lookup before the system clear the cache. 

 

 Thank,

EV

icon

Best answer by markusray17 17 August 2022, 20:11

View original

4 replies

Userlevel 6
Badge +5

It is defined in a graph extension:

public class INAdjustmentEntryExt: 
PXGraphExtension<INAdjustmentEntry.SiteStatusLookup, INAdjustmentEntry>
{
public static bool IsActive() => true;

public delegate IEnumerable AddInvSelBySiteDelegate(PXAdapter adapter);

[PXOverride]
public IEnumerable AddInvSelBySite(
PXAdapter adapter, AddInvSelBySiteDelegate baseMethod)
{
return baseMethod(adapter);
}
}

 

Userlevel 2
Badge

It is defined in a graph extension:

public class INAdjustmentEntryExt: 
PXGraphExtension<INAdjustmentEntry.SiteStatusLookup, INAdjustmentEntry>
{
public static bool IsActive() => true;

public delegate IEnumerable AddInvSelBySiteDelegate(PXAdapter adapter);

[PXOverride]
public IEnumerable AddInvSelBySite(
PXAdapter adapter, AddInvSelBySiteDelegate baseMethod)
{
return baseMethod(adapter);
}
}

 

Hi,

How I can access the sitestatus variable, so I can get the records that the user selected?

Thanks,

EV

Userlevel 6
Badge +5

Base1 will give you the graph extension and the view is named sitestatus. You can iterate though the cached records via Base1.sitestatus.Cache.Cached and select the selected ones. 

Userlevel 2
Badge

Base1 will give you the graph extensions and the view is named sitestatus. You can iterate though the cached records via Base1.sitestatus.Cache.Cached and select the selected ones. 

Thanks.

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved