+ Start a Discussion
sfdc-apexsfdc-apex 

To display records in pages in Visual Force.

I have to display thousands of records in my visual force page.I'm able to display them only in one page.Can I display them in pages similar to the records displayed in Views.
 
Any pointers will be of great help.Thanks in advance.
 
Regards,
Sushmitha
yogesh.rankawatyogesh.rankawat
You should use pagination by fetching specific records each time using Ajax.
:smileyhappy:
hisrinuhisrinu
Hi,

Use this post which was developed by me for my project.

http://community.salesforce.com/sforce/board/message?board.id=Visualforce&thread.id=2034

Thanks
Srini
sfdc-apexsfdc-apex
Hi Srini,
 
Thanks a lot for your reply.
 
It was really helpfull.But still I have one query (since my requirement is a bit different).
 
You were calling  ' getbtc() '  on click of a button after entering search criteria and the functionality goes on .
But my requirement is to display records on load of the visual force page itself.So I could nt use page reference method ' getbtc() ' .I have to use 'getGetlbtc()' first only.So I facing  problem.
 
can you please give me any solution to approach this problem.
Thanks in advance..
 
 
Thanks and Regards,
Sushmitha
 
 
hisrinuhisrinu
 Hi Sushmitha,

   You can use action attribute for the page tag.

<apex:page action="getbtc()">
write your code here
</apex:page>


Thanks
Srini


sfdc-apexsfdc-apex

Hi Srini,

Thanks a lot.Its Working.

:smileyvery-happy:

 

Thanks,

Sushmitha

sfdc-apexsfdc-apex

Hi Srini,

Thanks a lot for yor help.I have one more query.

Can we disable 'previous' link for the first time when a visual force page is displayed  and 'next' link after the last set of records are displayed, in  visual force (like in standard list views).

or is there any work around solution for this.Any pointers will be of great help.

Regards,

Susmitha

hisrinuhisrinu
Hi Susmitha,

You can disable that using the rendered property.
If list size is <=5 disable that previous button and if list size is equal to size of the list.
Like this you can easily disable them.



jayanti mohantyjayanti mohanty

hi.

can u please help how to display the list of records as input values in visual force page..in that records there are no fileds only just names like.how to display them as input values

please please help