To Start the Customization of a Data Access Class

Note: Before you start a DAC customization, we recommend that you check the possibility to use the appropriate business entity attributes, which can be defined on the Attributes (CS205000) form, instead of custom fields. See Use of Entity Attributes Instead of Custom Fields for details.

You might need to customize an existing data access class in the following cases:

  • On a form, you want to create a custom data field to be used for a custom control.
  • In MYOB Acumatica, you want to change the business logic for a data field in the DAC.
    Important: If multiple MYOB Acumatica forms contain controls for the same field, changing an attribute of the field in the DAC modifies the behavior of these controls for the field on all forms.

If you know the name of the data access class to be customized, you can first add a DAC item for the class on the Customized Data Classes page of the Customization Project Editor (see To Add a DAC Item for an Existing Data Access Class to a Project for details) and then click the item to open it in the Data Class.

You usually start the customization of a data access class on a form that contains boxes used by users to work with data of an appropriate business entity, such as a sales order invoice.

To Start DAC Customization

To start the customization of a DAC from a form, perform the following actions:

  1. Open the form in the browser.
  2. On the form title bar, click Customization > Inspect Element to open the Element Inspector.
    Note: If you need to activate the Element Inspector for a pop-up panel, a dialog box, or another UI element that opens in modal mode and makes the Customization Menu unavailable for selection, you can press Ctrl+Alt.
  3. On the form, click the area with the boxes that are used for the data of the business entity, to open the Element Properties Dialog Box for the area.
  4. In the Data Class box of the dialog box, view the name of the DAC for the element you clicked (see Item 1 in the following screenshot). If you are not sure that this DAC is the needed one, click Cancel and repeat Step 3.
  5. Click Actions > Customize Data Fields (Item 2).
    Figure 1. Using the Element Properties dialog box to start the customization of the class


  6. If there is no currently selected customization project and the Element Inspector opens the Select Customization Project Dialog Box, select an existing customization project or create a new one.

If the customization project does not contain a DAC item for the data access class, the Customization Project Editor adds the item to the project to keep the changes in the database. The DAC is opened in the Data Class, and you can start the customization of the class.

When you click Save on the editor toolbar, the editor updates the DAC item in the database.