Quantcast
Channel: Microsoft Dynamics AX
Viewing all articles
Browse latest Browse all 101540

Forum Post: RE: Overwrite the field's value

$
0
0
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 .

Viewing all articles
Browse latest Browse all 101540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>