function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
divya divyadivya divya 

problem on calculating total price in opportunitylineitem

Hi
Actually my scenario is to display the total price,list price,quantity,discount in VF page. I want to perform dynamic operation for those field that is before saving itself i want to display the total price. I tried that in java script but its not working. Can any one help me out to solve this issue.
I want to display like thisUser-added image

Thanks in advance
Phillip SouthernPhillip Southern
Hi Divya, are you using you could put actionsupport on the quantity, price, and discount fields to where if the event is ischanged you can call the controller to do calculations and then rerender or refresh part or all the page.  
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_actionSupport.htm