Hi,
I have to use Javascript to set dynamically the value of the currency field, but I cannot achieve it.
Generally I was trying to achieve it by below solutions:
1) Xrm.Page.data.entity.attributes.get(“currencyfield”).setValue(1000);
2)var field = executionContext.getFormContext().getAttribute("currencyfield");
field.setValue(145000034);
3)
var lookup = new Array();
lookup.type = "Microsoft.Crm.Sdk.Data.Service.Money";
lookup.value = 1000;
Xrm.Page.getAttribute("currencyfield").setValue(lookup);
Unfortunately any of these above solutions doesn't set the value of Field with type "Currency".
Do you have any idea what I'm doing wrong or what should I do set dynamically Currency field?