This document describes the PX1094 diagnostic.
Code | Short Description | Type | Code Fix |
---|---|---|---|
PX1094 | Every DAC should be decorated with the PXHidden or PXCacheName attribute. |
Warning (ISV Level 3: Informational) | Available |
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
.
public class Product : PX.Data.PXBqlTable, PX.Data.IBqlTable // The PX1094 warning is displayed for this line.
{
}
[PXCacheName("Enter a cache name for this DAC")]
public class Product : PX.Data.PXBqlTable, PX.Data.IBqlTable
{
}