I wrote the code in the purchcreateorder form's purchtable datasource's field (Order account). So basically, i wrote the modified code in the order account to modify the remark automatically as i enter the vendor account in the dialog of creating new purchase order. [DataField] class OrderAccount { void modified() { /* VendTable vt; super(); select PurchTable where PurchTable.OrderAccount == vt.AccountNum; PurchTable.Remarks = vt.Remarks; */ VendTable vt; select Remarks from vt where vt.AccountNum == PurchTable.OrderAccount; PurchTable.Remarks = vt.Remarks; super(); element.orderAccountModified(); } And i am not familiar with the events, if there could be anything done on write method of purchtable .
↧