AX 2012 - Default Currency to be mandatory

Hi,

While creating New Vendor the default currency of legal entity is displayed. My requirement is it should be shown empty with mandatory sign and the creator has to select the the desired currency of the Vendor. Any setup is there to make the field as empty with mandatory sign. Please let me know.

Jagadeesh

You could change the field property Mandatory to Yes and write code on form run of the VendTable to clear the Values on the Currency Field upon opening the form. This makes the field mandatory and clears out the field every time a new vendor form is called.

Thanks Ashwin for the suggestion.

Jagadeesh

You can use the following code

Ledger::accountingCurrency(CompanyInfo::current());

or

CompanyInfo::standardCurrency()

Hi Jagadeesh,

It is working fine. Please comment the below line in the VendTable table initValue method.

this.Currency = Ledger::accountingCurrency(CompanyInfo::find().RecId);

Thanks,

Hari

Thanks Hari.

Jagadeesh