+ Start a Discussion
Alex Valavanis 10Alex Valavanis 10 

Custom controller for VF Page

I need to create a custom controller since i my VF page shows only 20 records.

Can you please tell me how to do it?

The VF page created is the following.

<apex:page standardController="TaskTest__c" recordSetVar="records">  
    <apex:form >
        <apex:pageBlock title="Task Summary" mode="inlineEdit">      
            <apex:pageBlockTable value="{! records}" var="rec">   
                <apex:column headerValue="Name" >
                    <apex:outputField value="{! rec.Name}" />
                <apex:column headerValue="Discription " >
                    <apex:outputField value="{! rec.Discription__c}" />
                <apex:column headerValue="Estimated Date for Task" >
                    <apex:outputField value="{! rec.Estimated_Date_for_Task__c}" />
                <apex:column headerValue="Owner" >
                    <apex:outputField value="{! rec.Owner__c}" />
                <apex:column headerValue="Status " >
                    <apex:outputField value="{! rec.Status__c}" />
                <apex:column headerValue="User Story " >
                    <apex:outputField value="{! rec.User_Story__c}" />
                <apex:inlineEditSupport showOnEdit="saveButton, cancelButton" 
                                        hideOnEdit="editButton" event="ondblclick" 
                                        changedStyleClass="myBoldClass" resetFunction="resetInlineEdit"/>
                <apex:commandButton action="{!quicksave}" id="saveButton" value="Save" rendered="true"/>
                <apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel" rendered="true"/>
Dinesh GopalakrishnanDinesh Gopalakrishnan
Hi  Alex Valavanis 10,

Kindly Check the Below mentioned Thread.I hope it'll be Helpful for your Requirement.


Mark this as a Best Answer If it fits your Requirement!

DineshKumar Gopalakrishnan