0

2.1

mins

left

Iteration Components Used In Salesforce VisualForce Pages

Iteration Components Used In Salesforce VisualForce Pages

Iteration Components Used In Salesforce Visualforce Pages

Iteration Components allows you to display the output of content on the page in the form of list view or separated into the column wise. By using the given components we can achieve iteration easily so here we have some examples of components which we use, Also examples here shows about pagination effects on Visualforce Pages. Pagination a process to break a complete document or large no. of records into separate pages for viewing within the Salesforce, we have Next and Previous buttons or links to move either forward or backward to get further list of elements.

  • <apex:pageBlockTable>

List of data that displayed as a table within either PageBlock or PageBlockSection components, which are similar to the related list or list view in a standard Salesforce page.

apexPageBlockTable



  
  
   
 
  
  
  
       Previous
       Next
    



  • <apex:dataTable>

An HTML table that’s defined by iterating over a set of data, displaying information about one item of data per row.

apexDataTable


  
  
  
   
   
   
  
  
      Previous
      Next
    
  
  

  • <apex:dataList>

An ordered or unordered list of values that is defined by iterating over a set of data.

apexDataList


  
  
    
      
        {!a.name}
      
    
    
      Previous
      Next
    
   
  

  • <apex:repeat>

An Iteration component that allows you to display the output of the contents of collection of records according to a structure that you specify.

apexRepeat


  
  
  
   
   {!a.name}
    
  
  
      Previous
      Next
    
     
   

In terms of Governor Limits, Salesforce is based on multi-tenant architecture so it has some predefined resource usage limits for every users. In general we can display only 20 records at a time but we can exceed this range by using the controller extension.

Thanks For Reading

Happy Salesforce!!

Related Articles

Responses