I am running the query via CRM Rest Builder Value field is the coin in the Standard authority and the latter with the value 3,000.00 however it is bringing 3000.0000, getting 30,000,000.00 inves of 3,000.00
I need to convert more how to do this using javascript?
Follows the code I'm using
var = PadraoGuid Xrm.Page.getAttribute ( "new_padraoid") getValue () [0] .id.;
XrmServiceToolkit.Rest.RetrieveMultiple
(
"New_padraoSet"
"? $ Select = new_horasmensais, new_horassemanais, new_padraoId, new_valor & filter = $ new_padraoId eq guid '" + PadraoGuid + "'"
function (results)
{
for (var i = 0; i <results.length; i ++)
{
var new_horasmensais = results [i] .new_horasmensais;
var new_horassemanais = results [i] .new_horassemanais;
var new_padraoId = results [i] .new_padraoId;
var new_valor = results [i] .new_valor.Value;
}
alert (new_valor)
var = stringmoney new_valor;
Xrm.Page.getAttribute ( "new_horasmensais") setValue (new_horasmensais.);
Xrm.Page.getAttribute ( "new_horassemanais") setValue (new_horassemanais.);
Xrm.Page.getAttribute ( "new_salario") setValue (new_valor.);
},
function (error) {
alert (error.message);
},
function () {
// On Complete - Do Something
},
true
);
Thank you










