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
Varun AnnadataVarun Annadata 

How to give division after particular field under repeat tags?

<apex:page standardcontroller="Program_Member_MVN__c" extensions="CaseCounter" showHeader="false" >
    <apex:form >
        <apex:pageBlock title="Attachments" >
            <apex:pageblockSection >
           <!-- <apex:outputPanel layout="block" style="overflow:auto;width:200px;height:500px" >-->
                <apex:repeat value="{!results}" var="M" >  
                <apex:repeat value="{!M.Attachments}" var="temp"> 
                           
                     <apex:outputText label="Case Number"  >
                     <apex:outputLink value="{!URLFOR($Action.Case.View,M.Id)}" target="_blank">
                         {!M.CaseNumber}
                     </apex:outputLink>
                     </apex:outputText> 
                                            
                    <apex:outputText label="Attachment" >
                    <apex:outputLink value="{!URLFOR($Action.Attachment.Download,temp.Id)}" target="_blank">{!temp.Name}</apex:outputLink>
                    </apex:outputText>
                    
                    <apex:outputField value="{!temp.LastModifiedDate}"/>
                    
                    <apex:outputField value="{!temp.CreatedById}"/>
                </apex:repeat>
                </apex:repeat>
                <!-- </apex:OutputPanel>-->
             </apex:pageblockSection>
         </apex:pageBlock>
    </apex:form>
</apex:page>

User-added image

My visual force page is looks like above.I want to give some space after the four fields are displayed for a particular record.How can i do that with apex:repeat tag?
Best Answer chosen by Varun Annadata
Samadhan ForceSamadhan Force
Hi Varun,

Use below code hope this will solve your issue.
 
<apex:page standardcontroller="Program_Member_MVN__c" extensions="CaseCounter" showHeader="false" >
    <apex:form >
        <apex:pageBlock title="Attachments" >
            <apex:pageblockSection >
           <!-- <apex:outputPanel layout="block" style="overflow:auto;width:200px;height:500px" >-->
                <apex:repeat value="{!results}" var="M" >  
                <apex:repeat value="{!M.Attachments}" var="temp"> 
                           
                     <apex:outputText label="Case Number"  >
                     <apex:outputLink value="{!URLFOR($Action.Case.View,M.Id)}" target="_blank">
                         {!M.CaseNumber}
                     </apex:outputLink>
                     </apex:outputText> 
                                            
                    <apex:outputText label="Attachment" >
                    <apex:outputLink value="{!URLFOR($Action.Attachment.Download,temp.Id)}" target="_blank">{!temp.Name}</apex:outputLink>
                    </apex:outputText>
                    
                    <apex:outputField value="{!temp.LastModifiedDate}"/>
                    
                   <apex:outputField value="{!temp.CreatedById}"/>
																			
																			<apex:pageblockSectionitem/>
																			<apex:pageblockSectionitem/>
																			
                </apex:repeat>
                </apex:repeat>
                <!-- </apex:OutputPanel>-->
             </apex:pageblockSection>
         </apex:pageBlock>
    </apex:form>
</apex:page>

--
SamadhanForce

All Answers

Varun SinghVarun Singh
Hi @varun,

Try in this way

You have to use HtMl form in vf page,design form according to your style.
 
<apex:form >
   <table border="1" width="650Px">
    <tr> 
      <th> Account Name</th>
      <th> Type  </th>
      <th> Industry</th>
    </tr>
    
    <apex:repeat value="{!accList}" var="a">
      <tr>
        <td> {!a.Name} </td>
        <td> {!a.type} </td>
        <td> {!a.industry} </td>
      </tr>
     </apex:repeat>
   </table>

 </apex:form>

I Hope this is Helpful
Samadhan ForceSamadhan Force
Hi Varun,

Use below code hope this will solve your issue.
 
<apex:page standardcontroller="Program_Member_MVN__c" extensions="CaseCounter" showHeader="false" >
    <apex:form >
        <apex:pageBlock title="Attachments" >
            <apex:pageblockSection >
           <!-- <apex:outputPanel layout="block" style="overflow:auto;width:200px;height:500px" >-->
                <apex:repeat value="{!results}" var="M" >  
                <apex:repeat value="{!M.Attachments}" var="temp"> 
                           
                     <apex:outputText label="Case Number"  >
                     <apex:outputLink value="{!URLFOR($Action.Case.View,M.Id)}" target="_blank">
                         {!M.CaseNumber}
                     </apex:outputLink>
                     </apex:outputText> 
                                            
                    <apex:outputText label="Attachment" >
                    <apex:outputLink value="{!URLFOR($Action.Attachment.Download,temp.Id)}" target="_blank">{!temp.Name}</apex:outputLink>
                    </apex:outputText>
                    
                    <apex:outputField value="{!temp.LastModifiedDate}"/>
                    
                   <apex:outputField value="{!temp.CreatedById}"/>
																			
																			<apex:pageblockSectionitem/>
																			<apex:pageblockSectionitem/>
																			
                </apex:repeat>
                </apex:repeat>
                <!-- </apex:OutputPanel>-->
             </apex:pageblockSection>
         </apex:pageBlock>
    </apex:form>
</apex:page>

--
SamadhanForce
This was selected as the best answer
Varun AnnadataVarun Annadata
@Samadhan Force Thank you
Samadhan ForceSamadhan Force
@Varun -- kindly mark it as Solved for others in future.