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
ward.geisward.geis 

Should I use <apex:repeat>? Please help, I'm lost!

SO, I'm trying to build a case multi-edit page that will be using a case list to define the cases shown when the custom link is selected.

 

here is my existing code, which works great, but will only return 20 rows, regardless of how many are in the list:

 

 

<apex:page standardController="Case" 
           recordSetVar="cases"
           tabStyle="Case" sidebar="false">
  <apex:form >
    <apex:pageBlock >
      <apex:pageMessages />
      <apex:pageBlockButtons >
        <apex:commandButton value="Quick Save" 
                            action="{!quicksave}"/>
        <apex:commandButton value="Save" 
                            action="{!save}"/>
      </apex:pageBlockButtons>
      <apex:pageBlockTable value="{!cases}" 
                           var="c">
        <apex:column value="{!c.casenumber}"/>
        <apex:column value="{!c.subject}"/>
        <apex:column headerValue="Upgrade Status">
         <apex:inputField value="{!c.Upgrade_Status__c}"/>
         </apex:column>
        <apex:column headerValue="SP Installed">
         <apex:inputField value="{!c.SP_Installed__c}"/>
         </apex:column>
        <apex:column value="{!c.SP_To_Install__c}"/>
        <apex:column headerValue="Status">
          <apex:inputField value="{!c.status}"/>
        </apex:column>
      </apex:pageBlockTable>    
    </apex:pageBlock>
  </apex:form>
</apex:page>

 I'm not particularly sure how I should be using the <apex:repeat> tag, can someone lend some assistance, seems like it should be easy enough but it's stumping me.

 

Cheers,

Ward

 

anil 007anil 007

apex:repeat  sample example try this example

 

 

<apex:page controller="repeatCon" id="thePage">

<apex:repeat value="{!strings}" var="string" id="theRepeat">

<apex:outputText value="{!string}" id="theValue"/><br/>

</apex:repeat>

</apex:page>



/*** Controller: ***/ 


public class repeatCon {



public String[] getStrings() {

return new String[]{'ONE','TWO','THREE'};

}

}
ward.geisward.geis

Thanks for the help everyone, but after thinking about it more, I would rarely be dealing with lists of over 40 or 50 cases.  I decided to implement a paging solution.

 

Paging is native to VF since 09.  See this post for more info...http://blog.sforce.com/sforce/2008/09/visualforce-pag.html

 

Cheers,

Ward