私はjavasciptで基本的な計算をしています。true を計算し、フィールドの値を true 値に変更します。しかし、データベースで確認すると、フィールドの元の値が表示されます。私が使う
Xrm.Page.getAttribute("new_exchangerate").fireOnChange();
formOnLoad で。私の実際のコード;
function ExchangeRateOnChange() {
var exchangeRate = Xrm.Page.getAttribute("new_exchangerate").getValue();
if (!exchangeRate) {
exchangeRate = 1;
}
var saleAmount = Xrm.Page.getAttribute("new_saleamount").getValue();
if (saleAmount) {
Xrm.Page.getAttribute("new_saleamounttl").setValue(saleAmount * exchangeRate);
// Xrm.Page.getAttribute("new_saleamounttl").setSubmitMode("always");
// I used setSubmit, but it won't worked too
}
}