RE - Fetching the worker name attached to the UserId

Hi Everyone,

I have a customized form in AX 2012. In that there is a field called "Sales person ".

Whenever i create a new record , by default i should get the worker name which is attached to the UserId in the User relations form.

Help me to solve this.



use currentWorker();

see how this has been implemented in sales order.

\Data Dictionary\Tables\SalesTable\Methods\initValue

\Data Dictionary\Tables\SalesTable\Methods\initValue_Server