You need to sign in to do that
Don't have an account?
SarikaP
Based on one field value in lineitem update values in the same field of other lineitem using onchange event
Hello Everyone,
I am having a field called Discount Percent at quotelineitem.
If a quotelineitem is of a specific Product Category and there are many quotelineitems of the same product category, when discount % is applied to one lineitem of that product category in an onchange event automatically the discount percent should be applied to all lineitems of the same product category.
Could anyone suggest how to do that?
Thanks
I am having a field called Discount Percent at quotelineitem.
If a quotelineitem is of a specific Product Category and there are many quotelineitems of the same product category, when discount % is applied to one lineitem of that product category in an onchange event automatically the discount percent should be applied to all lineitems of the same product category.
Could anyone suggest how to do that?
Thanks
All Answers
The basic idea would be to iterate through your collection of QLI's and change the Discount Percent of any that have the same Product Category as the changed QLI. I can't show example code until you answer the questions above. Also, if you can post relevant parts of your existing code, that would help.
This is just an example. I hope you can incorporate the techniques into your actual page. Let me know if you have questions.
The Visualforce page: The controller extension class:
Thanks in advance for helping me out!