Projects:Modularize AcctServer/Technical Documentation
Introduction
The development of this core enhancement can be divided on two parts. Modifications in Application Dictionary to be able to store the new needed information and modification of the AcctServer class.
Application Dictionary Changes
2 new column/fields are needed in the AD_Table table and Tables and columns window.
- AcctDateColumn_ID that references the AD_Column table, it has a validation so it only shows columns of the table that have date type references.
- AcctClassName varchar2(1000) text column to store a java class name.
AcctServer class
Modification needed to the get method on org.openbravo.erpCommon.ad_forms.AcctServer class, lines 303-417.
Before the switch check that the given AD_Table_ID is from a core table. If it is perform the switch statement, lines 308-409.
If the AD_Table_ID is not a core table, retrieve the tablename, AcctDateColumn_ID and AcctClassName values of the table and perform an analogue code to a case of the switch.