[ExtensionOf(formStr(SalesCreateOrder))]final class SalesCreateOrder_Extension{public void init(){ next(); //some forminit related code here } [DataSource] class TMSSalesTable //datasource related code here{public void write() { super(); if (!tmsSalesTable.mustBeSaved()) { TMSSalesTable blankTMSSalesTable; TMSSalesTable.data(blankTMSSalesTable); } } public boolean validateWrite() { if (!tmsSalesTable.SalesId) { tmsSalesTable.SalesId = salesTable.SalesId; } return super(); } [DataField] //code here related to the datafield of the data source above class CarrierCode { public void modified() { //some code here super(); } } }}
Apologies for the formatting, I have tried about 6 times, but it resets to straight lines