0

Hi I am new to SalesForce, I have tried using its giving me an error as limit 1000.

Suggest me some solution.

thanks in advance.

2

You can Use readonly attribute to display more than 1000 records.

  • 1
    Thanks for a quick response, I will try this and let you know. – Vivek P Feb 28 '15 at 4:23
  • I have implemented readonly attribute in my page, iam getting error as "730 kb exceeded view state size". – Vivek P Mar 2 '15 at 17:41
2

Repeater control has limit of showing only 1000 records.

You can use REST API to fetch record and JQUery to render it. This is good article to give you base that how to use REST API in VF.

  • I don't have any web services i am getting my data from controller. – Vivek P Feb 28 '15 at 4:17
  • @VivekP You don't need a web service call. You can construct the data payload in a method, and expose it by a RemoteAction function or as a plain JSON object directly in the page, where it can be processed by code you write. You don't need any jQuery experience, either, just plain VanillaJS should suffice, unless you want to load additional libraries. – sfdcfox Feb 28 '15 at 7:22
1

Jitendra Zaa has a good solution above, but I would also suggest that displaying more than 1,000 rows in a visualforce page can cause other problems. Depending on how the VF page is set up, for example, you can run into view state errors, or just general slowness. Users may also find it difficult to parse through this many records.

I would consider implementing pagination and/or some kind of search functionality with various filters, so that users can view a smaller subset of records (if, of course, this works for your needs).

  • How many records we can in pagination? – Ravindar Admin Sep 14 '17 at 5:18
0

You can also use RemoteActions. This is a starting point http://blog.enree.co/2013/01/apex-javascript-what-is-remoteaction.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.