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

I can't get the page reference to return correctly

I have a button called "Receive" on a related list on the parent object "Purchase_Order__c". This redirects me to a list of selected child records ("Purchase_Order_Lines__c") that has a "Submit" ...
0
votes
2answers
34 views

Apply pagination in Rest Resource

I have rest resource exposed to a external system. It is a simple rest api where i get a single parameter from the URL and query a custom object based on that param and return the results in a custom ...
0
votes
1answer
29 views

Maximum view state size limit (170KB) exceeded. Actual view state size for this page was 173,767KB

first of all thanks for your answers. Well, I'm creating a custom visualforce page with its controller for Accounts. In this page I develop a custom form to filter accounts. When I use the filter, ...
3
votes
1answer
39 views

Filter Id value 00BXXXXXXXXXXXX is not valid for the Task standard controller

Ok so I ran into something interesting today when trying to create a Visualforce button for the Task object. Everything was working gravy in Lightning. I was able to select records and everything ...
0
votes
1answer
27 views

Is the max StandardSetController record limit per setController or per transaction?

The documentation states: The maximum record limit for StandardSetController is 10,000 records. Instantiating StandardSetController using a query locator returning more than 10,000 records causes a ...
0
votes
1answer
18 views

How can I make my <account> variable filterType equal to the first account returned in a StandardSetController Query?

how would this work with a dynamic search page I have a visual force search page and I have used the stadardsetcontroller for pagination. The initial query during page load is working for me. ...
0
votes
2answers
58 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
19 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
171 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
73 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
36 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
68 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
487 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
116 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
52 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
66 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
43 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
260 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
929 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
119 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
109 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
545 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
36 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
142 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
523 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
122 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
463 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
253 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
483 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
936 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
169 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
499 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
116 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
254 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
456 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
339 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
188 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
138 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
1k 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
385 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
225 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
77 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
1k 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
95 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
166 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
229 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
230 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
100 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 ...