Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
26 views

Test Class Issue Standard set Controller Class

I write a test class to cover standard set controller class on account but i am not able to pass id. thats why not able cover code coverage. here is my code @IsTest public class ...
0
votes
1answer
34 views

How to pass list view selected items from one visualforce page to another

So I have a custom object called Transactions, and have recently made a list view button that will redirect the user to a visualforce page that will show the selected record, and provide a few buttons ...
1
vote
2answers
81 views

Is there a way to determine if an object supports list view?

Is there a way to determine if an object supports list view? I've developed a VF page which shows a list of Objects and based on Object selection it shows list views of that selected object. For some ...
0
votes
1answer
25 views

Custom Controller Test Coverage

Having a bit of difficulty getting any code coverage for my custom controller. The goal of the controller is to display a list of opportunities in a list where the division of the user is the same as ...
0
votes
2answers
27 views

Possible to redirect to a page that uses standardSetController from another Visualforce page?

Can a Visualforce page that uses a standardSetController be redirected to (with a list of records passed in) from anywhere other than a list view button?
1
vote
1answer
30 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
137 views

Getting Internal Salesforce.com Error when using StandardSetController

integer n = 3000; stringQuery = 'SELECT Id, Name, Email, Title, Phone From contact'; ApexPages.StandardSetController setCon = new ApexPages.StandardSetController(database.getQueryLocator(stringQuery));...
2
votes
1answer
367 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 ...
2
votes
1answer
110 views

How should I write and structure a good Apex Page Extension Test method?

I'm on the Advanced Apex Specialist Superbadge step 8 and I'm writing the test class, but what they are asking for seems different from what I've been taught about test methods. I thought that I ...
1
vote
1answer
63 views

How to use this getLimitQueryLocatorRows() before actual query

I want to make use of getLimitQueryLocatorRows() before i use the below code and throw exception or custom error message accordingly. Is this possible? SetCon = new ApexPages.StandardSetController(...
0
votes
0answers
337 views

Standard set controller Pagination, problem with setting page number

I would like to implement pagination on my searchResults table but I have problems with changing the page, because default StandardSetController next(), last() etc. functions don't work... Could you ...
-2
votes
1answer
33 views

Error in Test class

I'm new to salesforce. I've written a vf page to display selected opportunities and massedit those records. Below is my controller class and test class. I'm getting an error "Constructor not defined" ...
0
votes
1answer
61 views

How to Display Records in vf [closed]

in Controller i get the ContactRoles from opportunity through a listview but how to display ContactRoles in vf page public AccountListViewExtension(ApexPages.StandardSetController controller) { ...
2
votes
1answer
387 views

Query based on the Listview filter and the account id

The visualforce which we are working now shows the list of opportunities based on the account Id in the query string parameter. So we are using the standard set controller for the list view filtering, ...
0
votes
1answer
101 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 ...
2
votes
1answer
245 views

StandardSetController Test Class - 'Constructor not defined'

I am trying to write a test class for a StandardSetController with a very simple extension that processes a list of records that were selected from a related list. I am coming up short on how to get ...
0
votes
0answers
192 views

Displaying standard set controller in visual force?

I have a user case where the community user needs to see all the appointments of all the contacts from their parent account.Here is the Code I have: public class AppointmentListController { public ...
0
votes
2answers
289 views

StandardSetController - how does it work?

I want to know how StandardSetController actually works. My expectation on the insight is to understand how salesforce is handling the result set, in contrary with normal re-querying of records with ...
0
votes
1answer
633 views

How to add list view filtering to a visualforce page using standard controller

I am want to use list view filter to change the list of account in my visualforce page. I am not sure which event to use in action support. Here is what i have done so far <apex:page ...
0
votes
2answers
100 views

StandardSetController Test coverage - records not selected

I created a list button that launches a vf page. The vf page is a form that creates multiple records based on the form input and what records were selected from the list view. It works as expected. My ...
0
votes
0answers
125 views

Test class error for Search controller functionality

I have a requirement where my VF page needs to display a set of records based on a criteria(date and status fields) that a user selects. My VF page and customController works perfectly according to ...
0
votes
1answer
258 views

Unknown consrtructor error in custom controller class

I am a beginner in salesforce and I am attempting to write a controller class for a VF page that searches records based on a criteria(Date and status field) But I am facing the following error: ...
0
votes
1answer
78 views

Exception thrown by StandardSetController with Database.getQueryLocator? [closed]

I am using a StandardSetController with Database.getQueryLocator to call my query. I am wondering what can go wrong in this code snippet, i.e. what is the Exception that has a probability of being ...
-3
votes
1answer
186 views

how to cover apex standard set controller variable in test class?

Apex Class public class Controll{ public ApexPages.StandardSetController paged { get { if(paged == null) { paged = new ApexPages.StandardSetController(...
1
vote
1answer
372 views

StandardSetController.SetFilterId does not return expected result when the filter Id used

SO I am using standardSetController for displaying the records in VF page. And using the list view options to display the data based on selected list view filter. But I have noticed that after ...
0
votes
1answer
40 views

Combine results from 2 standard set controllers or add to the read only results. Is there any way to do this? [closed]

I have an extension for a custom child object. I need to build a list of all child records + create new child records for the parent that does not yet have a child record... and then paginate over ...
0
votes
1answer
352 views

List controllers are not supported for Task

While doing pagination for task using standardsetcontroller it's throwing error List controllers are not supported for Task What is the other way to show data on vfpage in pagination format for ...
3
votes
1answer
258 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 ...
-1
votes
1answer
1k views

Attempt to de-reference a null object (at standardSetController)

When I'm trying to open the VF I'm getting the error : Attempt to de-reference a null object An unexpected error has occurred. Your development organization has been notified. The following is ...
2
votes
0answers
160 views

How does the standard set controller manage state?

I have a VF datatable, where the user needs to update some fields on each record, and there can be thousands (though less than 10k). I learned that I could do that with the StandardSetController, and ...
1
vote
1answer
91 views

How does the getCompleteResult method work for standard set controllers

I don't understand why the getCompleteResult method returns true. From the documentation, I'm not clear what this method does. Can you help clarify it? https://developer.salesforce.com/docs/atlas.en-...
0
votes
1answer
718 views

Using Standard List Controller page Button in related List

I have a Master Object "Job Req", and a detail object "Application" In a "Job Req" record, i need to put a button in "Applications" related list, that (for now) does something simple, like just open ...
0
votes
0answers
310 views

Removing records in StandardSetController

I have a standardsetcontroller to display some records. I'm adding a row level button to remove the records from the list using a rowIndex variable. I'm getting the collection object in a list and am ...
3
votes
2answers
99 views

Can a single VF page override both a standard action and a list action?

To minimize the complexity and number of distinct pages in my org I would like to use a single VF page to override both the standard Delete action and create a Delete list view action that allows a ...
1
vote
1answer
60 views

Pass InputField into Controller Extension, mass edit of Owner

Trying to make an Accounts List View with a button. Selected accounts go to my visual force page, where the user selects to Account Owner (via search field) they want those records/accounts to be ...
3
votes
1answer
592 views

Unable To Cover StandardSetController.getSelected Loop

I cant seem to figure out why the creation of this custom object is not getting hit by my test class. Any help would be greatly appreciated. Here is the test class: @isTest public class ...
0
votes
0answers
85 views

How to find which rows got failed in StandardSetController.save()

I have a VF page with inline edit mode on and a controller having a set controller. A validation rule is present to check if LastName == '11', then show message 'Custom Error'. Now when I edit the ...
1
vote
1answer
151 views

List view button, mass update of Accounts and Contacts

I have been working on this problem awhile now and i'm not sure the direction I should go. I was pointed in the right direction but I am missing something. I'm making a list view button on the ...
0
votes
1answer
146 views

Unknown property error - from Apex Page save

Please find below my apex controller for which I am getting unknown property error for TableExampleController.CISubClass.Id when I try compile my corresponding page with it. I am not getting the ...
0
votes
0answers
172 views

Reusable component to search any record by Name

I am building a VF component which can be used to display records of any object as well as Ability to search the records by Name. I am struck with implementing the search part. My search feature is ...
1
vote
0answers
84 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 ...
0
votes
1answer
76 views

Alpha navigation bar is not working?

To all I am trying to add the alpha navigation bar to be in my page,It's also to be have the sorting and pagination itself.as like as My Controller , public class StandardPaginationSorting { // ...
0
votes
1answer
278 views

cover standardsetcontroller in test class

public SFA_LeadNewOverride_VFC(ApexPages.StandardSetController controller) { recId = ApexPages.currentPage().getParameters().get('...
3
votes
1answer
71 views

What exactly is the StandardSetController?

So I understand what it's used for and I know how to use it but, what exactly is it I create? Is it a List or an Array or what? When I build a StandardSetController in the following way public ...
0
votes
1answer
35 views

VF compile error: standardsetController - void.Id

I have to build an quote tab using VF. Since it not possible using general config i am using VF page. I am getting an error while adding the filter and controller. Error is unknown Void.Id. Can ...
2
votes
2answers
976 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
67 views

Unsupported sObjects for List Controllers

I am new to SFDC and have only been developing for about 6 months, in this time I have noticed some limitations around List Controllers and some standard objects. Is there any way (programatically) ...
0
votes
2answers
2k views

Display child records for specific parent on a visual force page

I am trying to display all child records related to a parent account, but I want to display it on the child visualforce page, not on the parent's. Here is my code. Site Visit1 is the child and Account ...
0
votes
1answer
28 views

Is it possible to easily implement a custom list VF page which works exactly as standard one does

My company wants to add a custom component(a header) at each tab page which is a list page. There is no magic implementing the pageBlockTable. However, I do find implementing it with different views ...
1
vote
1answer
320 views

StandardSet Controller Pagination is not working with SelectOption

I know this question might have been asked many times here, and I have worked on StandardSetController but I have not faced any issues, until now. My issue: the next, previous, first, last ...