In 2021r2, the compiler complains about obsolete PXReportTools and ReportProcessor methods. And also, "SettingsProvider" does not have an "Instance" property so, this is causing a build error. How can I fix this? Below is the code snippet currently I’m using.
Hi @charithalakshan49 In addition, you can find an example of a graph extension of SOOrderEntry which implements the new DI below:
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using PX.Common; using PX.Data; using PX.Objects.AP; using PX.Objects.AR; using PX.Objects.CA; using PX.Objects.CM; using PX.Objects.CR; using PX.Objects.CS; using PX.Objects.DR; using PX.Objects.EP; using PX.Objects.GL; using PX.Objects.IN; using PX.Objects.PM; using PX.Objects.PO; using PX.Objects.TX; using POLine = PX.Objects.PO.POLine; using POOrder = PX.Objects.PO.POOrder; using System.Threading.Tasks; using CRLocation = PX.Objects.CR.Standalone.Location; using PX.Objects.AR.CCPaymentProcessing; using PX.Objects.AR.CCPaymentProcessing.Common; using PX.Objects.AR.CCPaymentProcessing.Helpers; using PX.Objects.AR.CCPaymentProcessing.Interfaces; using ARRegisterAlias = PX.Objects.AR.Standalone.ARRegisterAlias; using PX.Objects.AR.MigrationMode; using PX.Objects.Common; using PX.Objects.Common.Discount; using PX.Objects.Common.Extensions; using PX.Objects.IN.Overrides.INDocumentRelease; using PX.CS.Contracts.Interfaces; using PX.Data.DependencyInjection; using PX.Data.WorkflowAPI; using PX.Objects.Extensions.PaymentTransaction; using PX.Objects.SO.GraphExtensions.CarrierRates; using PX.Objects.SO.GraphExtensions.SOOrderEntryExt; using PX.Objects.SO.Attributes; using PX.Objects.Common.Attributes; using PX.Objects.Common.Bql; using OrderActions = PX.Objects.SO.SOOrderEntryActionsAttribute; using PX.Objects.SO.DAC.Projections; using PX.Data.BQL.Fluent; using PX.Objects; using PX.Objects.SO; using PX.Data.Reports; using PX.SM; using PX.Reports.Controls; using PX.Reports.Data; using System.Configuration; using PX.Reports; using CommonServiceLocator;
namespace PX.Objects.SO { // Acuminator disable once PX1016 ExtensionDoesNotDeclareIsActiveMethod extension should be constantly active public class SOOrderEntry_Extension : PXGraphExtension<PX.Objects.SO.SOOrderEntry> { #region Event Handlers InjectDependency] protected IReportLoaderService ReportLoader { get; private set; }
@ruchikasharma23@evgenyafanasiev56 It worked! Thanks for the responses!
Hi @charithalakshan49 In addition, you can find an example of a graph extension of SOOrderEntry which implements the new DI below:
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using PX.Common; using PX.Data; using PX.Objects.AP; using PX.Objects.AR; using PX.Objects.CA; using PX.Objects.CM; using PX.Objects.CR; using PX.Objects.CS; using PX.Objects.DR; using PX.Objects.EP; using PX.Objects.GL; using PX.Objects.IN; using PX.Objects.PM; using PX.Objects.PO; using PX.Objects.TX; using POLine = PX.Objects.PO.POLine; using POOrder = PX.Objects.PO.POOrder; using System.Threading.Tasks; using CRLocation = PX.Objects.CR.Standalone.Location; using PX.Objects.AR.CCPaymentProcessing; using PX.Objects.AR.CCPaymentProcessing.Common; using PX.Objects.AR.CCPaymentProcessing.Helpers; using PX.Objects.AR.CCPaymentProcessing.Interfaces; using ARRegisterAlias = PX.Objects.AR.Standalone.ARRegisterAlias; using PX.Objects.AR.MigrationMode; using PX.Objects.Common; using PX.Objects.Common.Discount; using PX.Objects.Common.Extensions; using PX.Objects.IN.Overrides.INDocumentRelease; using PX.CS.Contracts.Interfaces; using PX.Data.DependencyInjection; using PX.Data.WorkflowAPI; using PX.Objects.Extensions.PaymentTransaction; using PX.Objects.SO.GraphExtensions.CarrierRates; using PX.Objects.SO.GraphExtensions.SOOrderEntryExt; using PX.Objects.SO.Attributes; using PX.Objects.Common.Attributes; using PX.Objects.Common.Bql; using OrderActions = PX.Objects.SO.SOOrderEntryActionsAttribute; using PX.Objects.SO.DAC.Projections; using PX.Data.BQL.Fluent; using PX.Objects; using PX.Objects.SO; using PX.Data.Reports; using PX.SM; using PX.Reports.Controls; using PX.Reports.Data; using System.Configuration; using PX.Reports; using CommonServiceLocator;
namespace PX.Objects.SO { // Acuminator disable once PX1016 ExtensionDoesNotDeclareIsActiveMethod extension should be constantly active public class SOOrderEntry_Extension : PXGraphExtension<PX.Objects.SO.SOOrderEntry> { #region Event Handlers InjectDependency] protected IReportLoaderService ReportLoader { get; private set; }