Skip to content

Latest commit

 

History

History
97 lines (74 loc) · 2.4 KB

PX1022.md

File metadata and controls

97 lines (74 loc) · 2.4 KB

PX1022

This document describes the PX1022 diagnostic.

Summary

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

Diagnostic Description

Acumatica Platform recognizes only public graphs, DACs, DAC and graph extensions.

To fix the issue, you should make your graphs, DACs, graph and DAC extensions 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.

DAC

Example of Incorrect Code

namespace PX.Objects.AR
{
    internal class ARPayment : PXBqlTable, IBqlTable // The PX1022 error is displayed for this line.
    {
        ...
    }
}

Example of Possible Code Fix

namespace PX.Objects.AR
{
    public class ARPayment : PXBqlTable, IBqlTable
    {
        ...
    }
}

Graph

Example of Incorrect Code

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

    }
}

Example of Possible Code Fix

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

    }
}

Graph Extension

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>
    {

    }
}

Related Articles

Graph Declaration Data Access Classes Graph Extensions DAC Extensions