Skip to main content
Answer

Override Action in INAdjustmentEntry

  • August 17, 2022
  • 5 replies
  • 435 views

Forum|alt.badge.img

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

Best answer by markusray17

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);
}
}

 

5 replies

Forum|alt.badge.img+5
  • Jr Varsity II
  • Answer
  • August 17, 2022

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);
}
}

 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • August 17, 2022

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


Forum|alt.badge.img+5
  • Jr Varsity II
  • August 17, 2022

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. 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • August 17, 2022

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.


Forum|alt.badge.img
  • Freshman II
  • August 5, 2024

This site status variable is no longer available in 24R1 version, what is the replacement, can anyone suggest it…? Below is my Code

 

The sitestatus variable is showing the following error.