Attributes on DACs
You can place the attributes listed in the following table on the data access class (DAC) declaration.
Attribute | Description |
---|---|
PXPrimaryGraph | Specifies the graph that is used by default to edit a data record. |
PXCacheName | Specifies the user-friendly name of the DAC. The name is displayed in the user interface. |
PXTable | Binds a DAC that derives from another DAC to the table having the name of the derived table. Without the attribute, the derived DAC will be bound to the same table as the DAC that starts the inheritance hierarchy. |
PXAccumulator | Updates the values of a data record in the database according to the policies specified in the attribute parameters. |
PXHidden | Gives the developer the ability to hide a DAC, graph, or view from the selectors of DACs and graphs, and from generic inquiries, reports, and the web services API. |
PXNonInstantiatedExtension | Specifies that the DAC extension should not be instantiated multiple times. This attribute is typically added to a DAC extension that is created specifically for the purpose of overriding some attributes. Such an extension does not contain any field values, and by using this attribute, you prevent the extension from being instantiated multiple times, which helps save memory resources. |
The PXProjection attribute can also mark a DAC. See Data Projection for more details.