我真的找不到我如何從貨幣字段檢索值並將其設置爲另一個實體的另一個貨幣字段的值。CRM 2011 - 使用javascript設置貨幣字段值
我下面的代碼是不工作:
var entities = retrieveRecords("trainingSet?$filter=trainingId eq guid'" + GetLookUpData("trainingid").id + "'");
if (entities != null) {
if (entities.d.results.length > 0) {
if (entities.d.results[0]["Price"] != null) {
alert(entities.d.results[0]["Price"]);
Xrm.Page.getAttribute("price").setValue(entities.d.results[0]["Price"].getValue());
Xrm.Page.getAttribute("price").setSubmitMode("always");
}
}
}
最高審計機關的錯誤,只有除了數字或零控制。
任何幫助將非常感謝!謝謝!
謝謝!大文章也:) – ThdK
你應該只需要使用parseFloat,你不應該需要當前在該函數中的評估。選擇列表值和使用parseInt也是一樣(注意在使用parseInt時應該指定基數)。 – GotDibbs