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.

25 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
189 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 ...
2
votes
0answers
449 views

How to create list button with in SF lightning interface?

I have list button on Contact search layout with vf page and set controller. It is ok for SF classic but in Lightning interface do not have check boxes for multiselect for the contacts even though ...
2
votes
0answers
660 views

StandardSetController on object List view: Select All

Imagine a custom object called 'Foo' which is having the normal SFDC tab displaying the SFDC OOTB list view page. From this page, you can select, create, ... different views and return a list of ...
2
votes
0answers
1k views

Initiate ApexPage.StandardSetController with List causes exception being thrown in later pagination calls

I have a Paginated List displayed on the visual force page and in the backend I was using a StandardSetController to control the pagination. However, one column on the table is an aggregated field ...
2
votes
0answers
356 views

Customer Portal: StandardSetController for Cases with filterId set to “My …”-type of list views

I'm confused by the behavior of my StandardSetController for cases when its filterId is set to "My ..." type of list of views (e.g., "My Cases", or list views where Filter By is My Cases). As a ...
1
vote
0answers
91 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="...
1
vote
1answer
168 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 ...
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 ...
1
vote
0answers
241 views

Leverage StandardSetController pagination in Edit grid

There are numerous examples out there how to use StandardSetController to display Table grids for many SObject records. It's internal pagination mechanism is very helpful to e.g. reduce Viewstate on a ...
1
vote
0answers
351 views

How do I “cast” concrete types in Visualforce?

Apex StandardSetControllers are powerful. I love the ability to new one up and dump it on a page. Here's a contrived example, where a Contact has many Engagements with ratings etc: public with ...
0
votes
1answer
20 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
63 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 ...
0
votes
1answer
38 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
54 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
0answers
572 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 ...
0
votes
0answers
259 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
1answer
985 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
1answer
527 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
0answers
400 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 ...
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 ...
0
votes
0answers
235 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 ...
0
votes
0answers
505 views

using StandardSetController pagination working but disable previous and first button not enable when we next button or last

this is my class public without sharing class TaskAssignmentDashboardController { public list < contact > clist {get;set;} Public Integer size {get;set;} Public Integer noOfRecords {...
0
votes
2answers
313 views

What is StandardSetController?

What is StandardSetController and why is it used in Salesforce? Why do we instantiate it? Is there any alternative to this?
0
votes
1answer
473 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 ...