I actually have this working now, but it appears that is is executing base method and my override method. In the screenshot you can see it added the one line twice. The second items is the inventory id I’m trying to filter out. It looks like it’s executing the base method first. I’m not sure how to get around this. public class AHS_DialogBoxSOApptCreation : PXGraphExtension<SM_OpportunityMaint_DBox, SM_OpportunityMaint, OpportunityMaint> { public static bool IsActive() => PXAccess.FeatureInstalled<FeaturesSet.serviceManagementModule>(); //public delegate void PrepareHeaderAndDetailsDelegate(); //[PXOverride] public void PrepareHeaderAndDetails(DBoxHeader header, List<DBoxDetails> details) { PXTrace.WriteInformation("Hit my custom PrepareHeaderAndDetails method"); if (header == null || Base2.DocumentSettings.Current == null) { return; } PX.Objects.CR.CRO
Ah! What a rookie mistake. I copied and pasted from a different delegate and did not even notice I was missing the params in the delegate definition. Thank you!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.