Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.26 KB

PX1022.md

File metadata and controls

39 lines (28 loc) · 1.26 KB

PX1022

This document describes the PX1022 diagnostic.

Summary

Code Short Description Type Code Fix
PX1022 The non-public graph and DAC extensions are not supported. Error Available

Diagnostic Description

You can declare a class that is a graph extension. The Acumatica Customization Platform recognizes only public graph or DAC extensions.

To fix the issue, you can make the graph extension public.

The code fix replaces the current accessibility modifier with the public key word in the class declaration and, in case of nested types, in all containing non-public type declarations.

Example of Incorrect Code

namespace PX.Objects.AR
{
    class ARPaymentEntry_Extension : PXGraphExtension<ARPaymentEntry> // The PX1022 error is displayed for this line.
    {

    }
}

Example of Possible Code Fix

namespace PX.Objects.AR
{
    public class ARPaymentEntry_Extension : PXGraphExtension<ARPaymentEntry>
    {

    }
}