1

I am VF page which display records for a custom object. When there are a large number of custom records - I get: HEAPSIZE 6014176 error on page.

Any tips?

1 Answer 1

1

You're retrieving too much data and running into an Apex governor limit. You will need to reduce the amount of data you're retrieving and working with.

Update

One way to deal with this is to paginate the records returned. Salesforce provides a StandardSetController that allows you to easily work with lists and paginated results; in short you can create your own list view with it.

2
  • thanks but is there a kinda of a "more" button I can get out to limit the size displayed at any one time.
    – dublintech
    Commented Mar 26, 2013 at 16:12
  • I've updated my answer.
    – Mike Chale
    Commented Mar 26, 2013 at 16:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .