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
0
votes
2answers
46 views

StandardSetController- the save and next don't work together but work as separate button clicks

I am using StandardSetController of the type QueryLocator for my solution. When I try to merge Save and Next together on Next button with Save being on action and next being on oncomplete JavaScript(...
0
votes
0answers
18 views

get records based on recordtypeID and listviewID

I need to get records based on recordtypeid and listviewid but it is returning all records. I don't know where I'm doing it wrong.(it will return records based on listview but recordtypeid condition ...
1
vote
1answer
76 views

VF Page column sorting method loses functionality when extending standard controller, why?

So I am trying to make a VF Page to display list of account records. We must have pagination and filtering from standard controller. Also we must use custom controller to create methods to alternate ...
1
vote
0answers
33 views

User-proofing ListView StandardSetController getSelected from unsortable first column

(SFDC Classic) Given ListView VF page/controller invoked by a ListView button PAGE <apex:page id="thePage" standardController="Contact" extensions="ContactsCtrl" recordSetVar="...
0
votes
1answer
30 views

Cover a ApexPages.StandardSetController in a TestClass, help

thank you for your time, right now I'm trying to cover as the title says a standardSetController but I'm having some difficulties, the rest of the code is covered so I don't think i need to put the ...
0
votes
1answer
52 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
272 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
95 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
44 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
37 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
39 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
225 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
660 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
115 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
87 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
456 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
35 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
97 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
450 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
117 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
368 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
234 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
398 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
792 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
137 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
1answer
456 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
101 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
226 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(...
0
votes
1answer
43 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
411 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 ...
2
votes
1answer
305 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
2k 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
182 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
112 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
889 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
355 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
138 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
72 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 ...
2
votes
1answer
864 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
92 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
160 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
186 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
207 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
96 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
86 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
306 views

cover standardsetcontroller in test class

public SFA_LeadNewOverride_VFC(ApexPages.StandardSetController controller) { recId = ApexPages.currentPage().getParameters().get('...
3
votes
1answer
78 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
37 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
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
81 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) ...