You need to sign in to do that
Don't have an account?
SFDC coder
formula fields on VF does not reflect immediately
Hi All,
I have a VF page where i am trying to display formula fields as output fields.
After inputing some values that causes the formula fields to evaluate, when i click on my custom button the page reloads but the value isn't refreshed. Once i press F5 to refresh the page, only then it shows the new value. how do i solve this? below is my piece of code
Any help is appreciated
I have a VF page where i am trying to display formula fields as output fields.
After inputing some values that causes the formula fields to evaluate, when i click on my custom button the page reloads but the value isn't refreshed. Once i press F5 to refresh the page, only then it shows the new value. how do i solve this? below is my piece of code
<apex:page> <apex:form > <apex:pageBlock tabStyle="Contract_Line_Item__c"> <apex:pageBlockButtons > <apex:commandButton value="Save" action="{!save}"/> </apex:pageBlockButtons> <apex:pageBlock title="Actuals for Year 1" id="block1" > <apex:pageBlockSection columns="1" collapsible="true" title="Year 1" > <apex:pageBlockTable value="{!cliLstToDisplay}" var="cliItem1" id="ptable"> <apex:column headerValue="Product" > <apex:outputField value="{!formula field}"/> </apex:column> .... .... </apex:pageBlockTable> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>
Any help is appreciated
But my method save updates the records in database. so you are saying that for just one field i have to query all my fields again to be displayed on the VF?