I have custom field called total ("new_test_total")and the field is calculated from two other field
and I want to pass these total to the price list item amount what I have been done so far
I created another custom field called test and make these function on change the field Total amount
to pass the value of total amount to the field i create "new_test"
function update_Amount() { Xrm.Page.data.entity.attributes.get("new_test").setValue(Xrm.Page.data.entity.attributes.get("new_test_total").getValue()); }
and make mapping between price list item and Product
between the field test and the field amount
it works fine but when I try to change the field total by changing the parameter that it calculated based on it
the total amount change but i must save it twice(ctrl s) to change the value of amount in price list item
Hello Ahmed,
the mapping is working only during the creation, not in update.
What is the type of those fields?
Where did you create test field and what is "new_test_total" ?
Thanks,
Regards