Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.86 KB

PX1094.md

File metadata and controls

41 lines (29 loc) · 1.86 KB

PX1094

This document describes the PX1094 diagnostic.

Summary

Code Short Description Type Code Fix
PX1094 Every DAC should be decorated with the PXHidden or PXCacheName attribute. Warning (ISV Level 3: Informational) Available

Diagnostic Description

For every DAC, you should specify the PXHidden attribute or the PXCacheName attribute. You should specify the PXCacheName attribute to specify the name of the DAC that is displayed in the Report Designer and on the Generic Inquiry (SM208000) form. If you do not need the DAC in reports and generic inquiries, you should specify the PXHidden attribute.

The code fix does one of the following:

  • Adds the PXHidden attribute.
  • Adds the PXCacheName attribute. In the attribute, you should specify the name of the DAC to be displayed on the Generic Inquiry form and in the Report Designer.

The diagnostic is not displayed for classes derived from PXMappedCacheExtension.

Example of Code that Results in the Warning

public class Product : PX.Data.PXBqlTable, PX.Data.IBqlTable // The PX1094 warning is displayed for this line.
{
}

Example of Code Fix

[PXCacheName("Enter a cache name for this DAC")]
public class Product : PX.Data.PXBqlTable, PX.Data.IBqlTable
{
}

Related Articles