I have two fields on a vf page.
1) Bid Price - It is a input field of type currency. This field is used in the formula of the second field below.
2) Net Price - This is a formula field which calculated formula on the basis of bid price.
Requirement: I need to refresh the value of 'Net Price'
whenever the 'Bid Price'
value is input on a v.f page. As of now it remains constant to the value which it has fetched upon editing the page.
Below is the code snippet of the 'Bid Price' and 'Net Price' fields columns of the VF Page.
<apex:column >
<apex:facet name="header">Bid Price</apex:facet>
<apex:inputField value="{!item.itemRecord.Bid_Price__c}" style="width: 50px" rendered="{!NOT(blnMidCycle)}"/>
<apex:outputField value="{!item.itemRecord.Bid_Price__c}" style="width: 50px" rendered="{!blnMidCycle}"/>
</apex:column>
<apex:column headerValue="Net Price">
<apex:outputField value="{!item.itemRecord.Net_Price__c}" style="width: 50px"/>
</apex:column>
How can I modify the above code to refresh the 'Net Price'
field whenever the 'Bid Price'
field value is changed on the vf page ?
EDIT : Below is the formula of my field.
IF( Apttus_QPConfig__PriceListId__r.Resale_Flag__c = TRUE , Bid_Price__c -(Bid_Price__c * (Apttus_QPConfig__PriceListId__r.Resale_Maximum_Margin__c / 100)) , Bid_Price__c)