Weird Problem. I've used json2 and REST endpoints to lookup values, but setting a currency item gives me the following error:
Everything else that I set seems to work, it's just the currency field that I can't set. I tried debugging, and I noticed this:
I know that to set currency values "setValue(parseFloat(eval" needs to be used, which is what I've used. But still no luck. I've highlighted the problematic field below in bold, the non-bold items work. Anyone know why it isn't working?
Code:
//Set Global Variable for resultsvar result_timesheet= data.d;
//Set individual Variable for each attribute
var new_blankVar = result_timesheet.new_blank;
var new_RateVar = result_timesheet.new_Rate;
var new_LimitVar = result_timesheet.new_LimitDuration;
//replace the fields with the fields on your entity
Xrm.Page.getAttribute("new_limitcallcharge").setValue(new_LimitVar);
Xrm.Page.getAttribute("new_blank").setValue(new_blankVar);
Xrm.Page.getAttribute("new_ratecalculator").setValue(parseFloat(eval(new_RateVar)));