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
basha skbasha sk 

Refresh the page untill callout complete?

Hi Guys,


I'm getting the values from third party and inserting data into salesforce custom object from visualforce page
by clicking a button.I'm successfully getting the values and inserting the data from external system
but here my

Requirement:
------------

Once I click the button in visualforce page the page just refreshes and ends before callout complete.
I want to show the refreshing the page untill callout complete.Once the callout complete I want to display updated values
Please help anybody having idea


This is my code :
------------------

        <apex:actionStatus id="actStatusId">
           <apex:facet name="start">
              <div class="waitingSearchDiv" id="el_loading" style="background-color: black; height: 100%;opacity:0.65;width:100%;">
                  <div class="waitingHolder" style="top: 74.2px; width: 91px;">
                      <img class="waitingImage" src="/img/loading.gif"     title="Please Wait..." />
                    <span class="waitingDescription">Updating list...</span>
                  </div>
              </div>
          </apex:facet>
             <apex:facet name="stop">
                 <apex:commandButton action="{!getWebinarAttendees}" value="Update All" status="actStatusId"  reRender="responseBlock"  style="margin-left:50%" />            
             </apex:facet>
        </apex:actionStatus>            
        <br/><br/>  

      <apex:outputPanel>        
          <apex:pageBlock id="pgblock">
             <apex:pageblockSection id="responseBlock" title="Webinar Attendee Details" >
            <apex:pageBlockTable value="{!wrapperAccountList}" var="w" id="table" title="All Accounts">
                <apex:column >
                    <apex:facet name="header">
                        <apex:inputCheckbox onclick="selectAllCheckboxes(this,'inputId')"/>
                    </apex:facet>
                    <apex:inputCheckbox value="{!w.selected}" id="inputId"/>
                </apex:column>
                 <apex:column >
                    <apex:outputLink value="{!$Page.WebinarAttendeeDetails}?id={!w.acc.id}">{!w.acc.name}</apex:outputLink>            
                 </apex:column>
                 <apex:column value="{!w.acc.Login__c}"></apex:column>
                 <apex:inlineEditSupport event="ondblClick" />                
            </apex:pageBlockTable>
       </apex:pageblockSection>
     </apex:pageBlock>
 </apex:outputPanel>
 
 Thanks In Advance
 Basha