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
practice projectpractice project 

how to display sobject field in pageblock table visualforce page?

User-added image
Ramesh DRamesh D
Create a public parameter which can be accessed on VF page
public class reporttobe {
public List<CaseData> result{get; set;}
public void processSelected(){
result=your list<sObject>();
}
}
 
<apex:page controller="reporttobe" showHeader="false" >
    <apex:pageBlock title="report area">
    <apex:repeat value="{!result}" var="r">
    <apex:pageBlockSection title="{!r.field}">

    </apex:pageblockSection>
    </apex:repeat>
    </apex:pageBlock>
</apex:page>



Thanks
Ramesh
practice projectpractice project
Hi Ramesh,
Thanks for your quick response but im using page block table.
And my scenerio is that we are displaying list of records with checkbox in a table. End user can select records and then click on Show Selected accounts button. Then selected record will be displayed in other table.But my doubt is that this selectedAccounts(type-sobject) store all records which are check,so how can fetch from one table and display on another