need to get addresses of a customer from a custumer form to a new customized form when selecting customerID from lookup of customer field.

Hi friends,

need a small favor.

while doing a customization in AX2012 R2…i truck with a small issue…please help me out.

I need to get addresses of a particular customer from a custumer form to a new customized form when selecting customerID from lookup of that customer field.

Thanks in Advance.

Basically the address in AX2012 would be stored in “DirPartyPostalAddressView” view in AOT. So under modified method of customer selection form you can easily pick the address from “DirPartyPostalAddressView” based on that particular customer “Party”. Party is the relation between Custtable & DirPartyPostalAddressView.

Or you can just write this query on modified method of CustomerID field as

.text(custtable::find(this.valuestr()).address());