Working with Attributes

In MYOB Acumatica Framework, you use attributes to add common business logic to the application components.

Attributes implement business logic by subscribing to events. Each attribute class directly or indirectly derives from the PXEventSubscriberAttribute class. In addition, an attribute class derives from the interfaces that correspond to the event handlers it implements. For example, the PXDefault attribute derives from the IPXFieldDefaultingSubscriber, IPXRowPersistingSubscriber, and IPXFieldSelectingSubscriber interfaces, which means that it implements its logic in the FieldDefaulting, RowPersisting, and FieldSelecting event handler methods.

Attributes can be added to a data access class (DAC) definition, a data view declaration in a business logic controller (BLC), and the BLC definition itself.

For more information on each attribute, see the API Reference.