+ Start a Discussion
Dharmendra Kumar 60Dharmendra Kumar 60 

Outputpanel/Pageblocksection rerendering issue on Save

Not Able to Rerender Outputpanel/Pageblocksection on Save action.
Please advise on this -

<apex:page standardcontroller="RAQ_Header__c" extensions="myRAQExtension">
    <apex:pagemessages />
    <apex:form > 
      <apex:pageBlock >         
    <apex:pageBlockSection title="Contract Identification" columns="2">
           <apex:inputField value="{!RAQ_Header__c.name}"/>
          <apex:inputField value="{!RAQ_Header__c.Review_Status__c}"/>
           <apex:inputField value="{!RAQ_Header__c.Opportunity__c}"/>
   
          </apex:pageBlockSection>
       <apex:pageBlockSection columns="1">  
<apex:variable var="rowNum" value="{!0}"/> 
   
    <apex:pageBlockTable value="{!Quests}" var="Quest">
      <apex:column headerValue="Sr No.">
                     <apex:variable var="rowNum" value="{!rowNum + 1}"/>
                     {!rowNum}
                 </apex:column>
      <apex:column value="{!Quest.Question__c}"/>
       <apex:column headerValue=" Your Answer"><apex:inputfield value="{!Quest.Select_Answer__c}"/></apex:column>
       <apex:column headerValue="Comment"><apex:inputfield value="{!Quest.Comment__c}"/> </apex:column>
    </apex:pageBlockTable> 
    </apex:pageBlockSection>
           <apex:pageBlockSection title="Allocate Transaction Price" columns="3">
           <apex:inputField value="{!RAQ_Header__c.Total_License_Fees_Contract__c}"/>
           <apex:inputField value="{!RAQ_Header__c.Total_License_Fees_Retail_List__c}"/>
           <apex:inputField value="{!RAQ_Header__c.Revenue_Recognition_Method__c}" />
          </apex:pageBlockSection><br/>
         <apex:outputPanel id="Refresh">
            
          <apex:pageBlockSection columns="5" id="xy">
              <apex:outputText style="font-weight:600" value="Performance Obligation"/>
              <apex:outputText style="font-weight:600" value="Stated Value"/>
              <apex:outputText style="font-weight:600" value="SSP Range"/>
              <apex:outputText style="font-weight:600" value="SSP Estimate"/>
              <apex:outputText style="font-weight:600" value="Allocated Value"/>
              <apex:outputText style="font-weight:600" value="Perpetual License"/>
              <apex:pageBlockSectionItem ><apex:inputField value="{!RAQ_Header__c.Perpetual_License_Stated_Value__c}"/></apex:pageBlockSectionItem>
              <apex:pageBlockSectionItem helpText="Please enter account name"><apex:inputText title="Provide a minimum/maximum discount range for this item. For example Perpetual license - 95% off of list minimum to 525% of list maximum" value="{!RAQ_Header__c.Perpetual_License_SSP_Range__c}"></apex:inputText></apex:pageBlockSectionItem>
              <apex:pageBlockSectionItem ><apex:inputField value="{!RAQ_Header__c.Perpetual_License_SSP_Estimate__c}"/></apex:pageBlockSectionItem>
              <apex:pageBlockSectionItem ><apex:inputField value="{!RAQ_Header__c.Perpetual_License_Allocated_Value__c}"/></apex:pageBlockSectionItem>
              <apex:outputText style="font-weight:600" value="Maintenance"/>
              <apex:pageBlockSectionItem ><apex:inputField value="{!RAQ_Header__c.Maintenance_Stated_Value__c}"/></apex:pageBlockSectionItem>
              <apex:pageBlockSectionItem ><apex:inputText title="Provide a minimum/maximum discount range for this item. For example 'Perpetual license - 95% off of list minimum to 525% of list maximum'" value="{!RAQ_Header__c.Maintenance_SSP_Range__c}"/></apex:pageBlockSectionItem>
              <apex:pageBlockSectionItem ><apex:inputField value="{!RAQ_Header__c.Maintenance_SSP_Estimate__c}"/></apex:pageBlockSectionItem>
              <apex:pageBlockSectionItem ><apex:inputField value="{!RAQ_Header__c.Maintenance_Allocated_Value__c}"/></apex:pageBlockSectionItem>
              <apex:outputText value=""/>
              <apex:pageBlockSectionItem ><apex:inputField value="{!RAQ_Header__c.Total_Stated_Value__c}"/></apex:pageBlockSectionItem>
              <apex:outputText value=""/>
              <apex:pageBlockSectionItem ><apex:inputField value="{!RAQ_Header__c.Total_SSP_Estimate__c}"/></apex:pageBlockSectionItem>
              <apex:outputText value=""/>
              <apex:outputText value=""/>
              <apex:outputText style="font-weight:700" value="Total Stated Value"/>
              <apex:outputText value="" />
              <apex:outputText style="font-weight:700" value="Total SSP Estimate"/>
              <apex:outputText value=""/>          
          </apex:pageBlockSection>
           
          </apex:outputPanel>
<apex:pageblockbuttons >        
<div align="right" draggable="false" class="slds-button-group" role="group">
   
    <apex:commandButton styleclass="btn btn-primary" Action="{!Save}" value="Save" rerender="Refresh" />
       <apex:commandButton styleclass="btn btn-primary" Action="{!Cancel}" Value="Cancel"/>
                   
       </div>
          </apex:pageblockbuttons>
          </apex:pageBlock>
             </apex:form>  
</apex:page>


Thanks in Advance

 
Rounak SharmaRounak Sharma
hello dharmendra,

Please try to  wrap the outputPanel with the rendered attribute with another outputPanel
<apex:outputPanel >
<apex:commandButton styleclass="btn btn-primary" Action="{!Save}" value="Save" rerender="Refresh" />
       <apex:commandButton styleclass="btn btn-primary" Action="{!Cancel}" Value="Cancel"/>
</apex:outputPanel>

Please let me know if it helped you in any way.
thanks
Dharmendra Kumar 60Dharmendra Kumar 60
Thanks Rounak for quick response.
I did try putting the commandbutton inside output panel, but no luck. Still now able to rerender the section. 
Do we have anyway to rerender the section from controller side actions? Or is there other way to do it, please suggest.