Questions tagged [standardsetcontroller]

StandardSetController objects allow you to create list controllers similar to, or as extensions of, the pre-built Visualforce list controllers provided by Salesforce.

Filter by
Sorted by
Tagged with
3
votes
1answer
977 views

List View Visibility

I have a page where I am trying to show which ListViews a Project is in. I can get the data I want in the Developer Console by querying ListView. However, when I try to import the following query to ...
10
votes
2answers
3k views

How to call a standard controller action of a VF page from a VF component

I have a visual force page as follows which includes a component call Example one, Component has a command button and I want to call the standard controller save action of VF page from the VF ...
8
votes
1answer
1k views

Is it possible to select individual records when using standardSetController in a custom controller

Background: I've been working on a dynamic contact search page modeled on Jeff Douglas 2010 post. It works, and now I am exploring ways to add pagination and the ability to select records and take ...
1
vote
1answer
48 views

Is a “Content Source” of “Visualforce Page” required for Ids for the checked list view items to be received by a StandardSetController?

I'm working on making some JavaScript list view buttons "Lightning Ready" and am trying to find a clean way to do that. A recommended approach (somewhat counter-intuitively) is to use a Visualforce ...
0
votes
1answer
123 views

StandardSetController with History records

I recently found out that the StandardSetController can't be used with any of the History records such as MyCustomObject__History. The exception I got was: List controllers are not supported for ...
6
votes
2answers
682 views

Losing StandardSetController selected records with first visit to VF page

I have a VF page that leverages a custom object's StandardSetController to compare records. I created a custom button to allow users to select records of that object from a related list and compare ...
5
votes
2answers
706 views

System.VisualforceException: Record set cannot be empty

I'm getting this error everytime I'm assigning a non empty list of sObject to a standardsetcontroller list<sObject> listSearchArticles = someOtherMethod(); // someOtherMethod returns a list of ...
3
votes
1answer
3k views

The CORRECT way to redirect to a ListView from StandardSetController?

From a List Button or Visualforce Page, I wanna redirect to a ListView after. Common, right? Life is great when we're dealing with Standard Controller: using view() method. What is the correct, ...
2
votes
1answer
1k views

Accessing the StandardSetController from a Lightning component

I'm using a StandardSetController to grab all the ListViews for the logged-in user and displaying them in a Lightning component. When I call the method via anonymous Apex, it works fine, but when I ...
1
vote
1answer
498 views

Cannot use StandardSetController with ContentVersion?

I am trying to display a list of documents stored in Salesforce CRM Content on a VF page using JQGrid. I used OFFSET for paging. Since the number of records is more than 2000, I wanted to use ...
1
vote
0answers
103 views

Multiple record selection while using StandardSetController

Is there a way to implement multiple record selection with standard set controller varible without using wrapper class? how to use setSelected() and getSelected()? Can we directly set selected ...
9
votes
1answer
7k views

StandardSetController List Instatiation and setFilterId

I'm having an issue using a List to instantiate the StandardSetController and applying a list view filter id. Here's an example of using a List for instantiation as detailed at http://www.salesforce....
5
votes
1answer
410 views

Display bookmark link on detail page to inline VF page

How can I display an inline visualforce page on a page layout and have Salesforce generate the bookmark link at the top of the detail page, like it does for related lists? Currently, I can do this ...
4
votes
1answer
2k views

Pagination using standardset controller and ability to remove rows from list

I have a list of accounts and i need to also have a ability to remove records from this list. Now this list sometimes gets in a lot of records which causes the page to reach the heap size limit. To ...
3
votes
1answer
2k views

Peculiar StandardSetController Issue with Test Class

Currently I have a test method that is proving to be quite difficult to test. I currently have a controller extentsion that is used for a custom list view button. The test code gets almost every ...
2
votes
1answer
359 views

Pagination is not working for my VF page

I have search page where it will search for Opportunities based on some filters. I added pagination,but the issue is it is showing only 10 records out of 125 records and when I click on next button it ...
2
votes
1answer
991 views

StandardSetController.getRecords() is returning unrelated records

In an VisualForce page I am using a standardController on the Quote object. I also have an extension that has a constructor that takes in a standardSetController. The standardSetController.getRecords()...
2
votes
2answers
9k views

Visualforce page for multiple record creation

I want a VF page that would aid creating multiple child records for selected IDs. As an example, I would start from Account, select 5 or 7 Contacts, click a button which would take me to a custom VF ...
2
votes
2answers
1k views

Content cannot be displayed: Too many query locator rows: 10001

How to show a message/convey to the user that there are more than 10000 records when using StandardSetController? Do I need to fire a separate SOQL just to count the number of rows and use the LIMT ...
1
vote
2answers
975 views

Saving and Inline Edits on a PageBlockTable

So I have a custom Visualforce page that I am using to edit a number of records from a custom object. There is a grid (page block table) for inline editing of multiple records at the same time. I've ...