In Acumatica, there are instances where a DAC for a screen (e.g., Projects) is not directly bound to a table (PMProject), but inherits a DAC that IS bound to a table (Contract). Is there a good instructional reference source for doing this?
相关问题
- How to add a memo / formatted text field ala Cases
- Create Case with Activity through Rest API
- Acumatica dynamic dropdown
- How to create an ad-hoc email and send it using Ac
- How to include a dialog for file upload
相关文章
- Cannot load a reference assembly for execution
- Adding additional filter field on process shipment
- Create custom User Control for Acumatica
- Sales Price Updating Every Other Time
- Import Amount Paid in screen Bill And Adjusment us
- Acumatica Configuration Wizard error: Can't ge
- How to properly sort Tasks having multi-level Task
- Prevent update of note/files on disabled views
This theme is partially covered in T200 training course(Example 9.1).
Basic principles:
If you inherited some class DAC2 from the DAC1 bound to the SQL table then DAC2 will also be bound to the same SQL table.
However, fields from DAC1 will be used in the generated SQL query.
To allow BQL generate SQL queries with DAC2 field you should replace abstract class of this field in DAC2
SQL query will look like that:
To override attributes of the field you should override corresponding property in DAC2
If you want DAC2 to be different from DAC1, for instance you want to add some fields to DAC2 but you also want to keep DAC1 unmodified then you can use PXTable attribute(e.g. ARInvoice class)
The SQL query will look like that: