Skip to main content
Solved

Override Action in INAdjustmentEntry


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

 

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

Forum|alt.badge.img+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);
        }
}

 


Forum|alt.badge.img
markusray17 wrote:

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

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
markusray17 wrote:

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.
 

 


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