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

learn more… | top users | synonyms

0
votes
0answers
20 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 Lighting interface do not have check boxes for multiselect for the contacts even though ...
3
votes
2answers
47 views

StandardSetControllers Save Not Working

The save method on the StandardSetController is not working as I expect. I have a controller to update a list of custom objects. I have a vf page with a text box for the update and a Submit button to ...
0
votes
1answer
20 views

Not getting all records in Apexpages.standardsetcontroller

I have one custom object budget which has lookup to opportunity.I have added a list button on Budget related list.Onclick of that button I am trying to open a VF page that will edit all budget ...
5
votes
1answer
49 views

Woe Is the StandardSetController? Record set cannot be empty

I looked around for a duplicate for this issue, but couldn't find one. I created a very simple test on my way towards testing my extension. For those interested, SObjectFactory is on GitHub. This is ...
7
votes
0answers
71 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 ...
2
votes
0answers
19 views

StandardSetController.getListViewOptions() only returning “All” [duplicate]

I have a VF page tied to a controller which utilizes "StandardSetController" to retrieve the list of views created. The problem is whenever I am trying to get those list views using ...
5
votes
1answer
45 views

Does StandardSetController.getRecord work correctly? If so, how do I use it?

So, I was experimenting with ways to reduce CPU usage, and I came across a strange scenario: the StandardSetController did not seem to use the "prototype" object the way it should (that is, at all). ...
1
vote
1answer
90 views

Diffrence between StandardController and StandardSetController?

I have read documents for StandardSetController, but I don't understand what it is or why to use it.
9
votes
1answer
160 views

Lightning: Get list view records

How can one get ALL the records from a list view in a visualforce page running in Lightning? (Since no checkbox for selecting are available) Similar old question. With an adaptation from that ...
1
vote
2answers
49 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 ...
2
votes
1answer
230 views

Cross Site Scripting issue

I am getting XSS issue for the following statements in my code : a. lstDisplay.add(new SelectOption('','--None--')); b. lstDisplay.add(new ...
1
vote
1answer
229 views

Pagination with Wrapper Class and StandardSetController

I have a requirement for which I've written some code for paginated wrapped records with checkboxes using standardsetcontroller. Now I want to display all paginated records with page buttons like ...
8
votes
2answers
423 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 ...
1
vote
1answer
62 views

StandardSetController for non sObjects

Is there a way to utilize StandardSetController for non sObjects? Here is the issue. I have an sObject wrapper class and I'd like to use StandardSetController for next, prev, first, last (i.e. for ...
3
votes
4answers
222 views

How to get total number of pages in a standardSetController extension class

I have visual force page which shows the related list. public ApexPages.StandardSetController setCon{ get{ if(setCon == null){ size = 5; string queryString = ...
0
votes
0answers
43 views

wrappper class to fetch data from two object with lookup relation and using standerdsetcontroller

i have two object with name Timeslot__c and Commercial_Slot__c and have lookup in that.now i have to fetch data from them and display on the vf page using standrdsetcontrolller.and if for given ...
0
votes
1answer
38 views

Use a picklist to select the number of records to be displayed in paginator

I got the following method which uses Standardset controller and currently I have assigned a size to display the number of records in each pagination section. I want to make the size a picklist and ...
0
votes
2answers
99 views

StandardSetController (Edited)

EDIT 2: I am trying to change a StandardConroller to StandardSetController in order to use list button with visualforce. After the last comment I have updated to setSelected before b.sendemail(), ...
2
votes
0answers
137 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
1answer
191 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, ...
0
votes
2answers
62 views

Pagination methods aren't working

After a great deal of searching and effort, I've finally got a working controller that can show ContentVersion documents and paginate them. Upon testing it, though, I found that the Next button ...
0
votes
2answers
66 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?
3
votes
1answer
146 views

pagination not working using standardsetcontroller

I am using standardsetcontroller for pagination. But it's not working properly. It's showing previous, next buttons correctly but records showing all the records, not shown what given in set.pageSize ...
5
votes
2answers
180 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 ...
0
votes
1answer
113 views

Can We Write test Class for RecordsetVar with StandardController? [closed]

Vf page with recordsetvar : <apex:page standardController="Account" recordSetVar="Accounts" sidebar="false"> <apex:form id="form"> <apex:pageBlock title="Accounts List"> ...
1
vote
3answers
533 views

How to set page size for standard list controller without using extension class

I have a requirement in which I want to avoid involving extension class. The page shows list of account record present in org. I want to set page size for the list of accounts but I don't want to use ...
2
votes
2answers
212 views

list of records via custom controller

I'm using following simple code to get list of Account via custom controller but it is not returning records.what I'm doing wrong ? <apex:page controller="listcontroller" > <apex:Form > ...
3
votes
2answers
983 views

Help with Apex test class: Getting no code coverage

UPDATE: Sorry! I probably should have included this image to show how I would like the resulting VF page to appear. I'm new to MVC programming and the various controllers in Salesforce, so maybe a ...
1
vote
0answers
124 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 ...
0
votes
2answers
247 views

Visualforce page only show list of 20

I've created a class and VF markup to try and pull phone extensions from a custom object to display of our homepage. The code words well except it limits the results to only 20. Is there a way to tell ...
2
votes
1answer
423 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 ...
4
votes
1answer
235 views

Change error displayed when wrong ID type is used with standard controller in visualforce

I have a VF page that uses standard controller account. I want to modify the error message that is displayed when I type the wrong id (invalid) in the URL to avoid getting a message like this: (I want ...
13
votes
2answers
1k views

Any workaround for the bug with StandardSetController getSelected method?

I'm using a VF page and a controller to get the selected records in a view list and display some info. However the first time always fails (Related question), is there a different way to do this or a ...
1
vote
1answer
719 views

Issue with Pagination for Wrapper Class using StandardSetCOntroller

I have a Custom VF page report where i need to display Custom Object Record along with its Attachments. So i went for wrapper class to display all the details in single record, As the number of ...
1
vote
0answers
175 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 ...
6
votes
1answer
385 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 ...
0
votes
1answer
1k views

how to use two standard controllers in a single visual force page

I need to save two objects that have parent child relationship , using a single visual force page. And also I need to pass values to the controller from the form both parent and child object's ...
1
vote
1answer
385 views

Visualforce page for question with custom object.list the all question in the page

I have custom object called offering_details__C which lookup to question . visualforce page for question with saved in the custom object and list all the question in the same page . Below is the ...
2
votes
1answer
779 views

Visualforce dynamic binding

I have this page: <apex:page controller="mycontroller"> <apex:pageBlock > <apex:pageblocktable value="{!sc2.records}" var="test"> <!--<apex:pageblocktable ...
1
vote
2answers
2k views

External Entry Point Issue - Any Suggestion/Solution

Here is my Class public with sharing class MassDeleteLeadController { public MassDeleteLeadController (ApexPages.StandardSetController controller) { currentStep = '1'; ...
2
votes
1answer
211 views

Run a standard set controller extension from execute anonymous

I am trying to run a standard set controller extension from execute anonymous for the purpose of debugging, however I keep getting "Internal Salesforce.com error". I have narrowed down the offending ...
2
votes
2answers
4k views

Standardsetcontroller methods first(),last(),next() and previous() not working

Hi I am trying to implement sorting and pagination in visualforce. I am using the standardsetcontroller but for some reason the standardsetcontroller methods do not fire the actions when clicked on. ...
0
votes
2answers
945 views

How to pass value of selectoption to the standardsetcontroller

I have a selectoption and I am trying to pass the value of the itemValue attribute to the standardsetcontroller in order to return query results based on the itemValue. I have the default selection ...
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 ...
4
votes
1answer
2k views

Can you use a ListView filter with a StandardSetController without a custom controller or extension?

I have a Visualforce page using a Standard Set Controller, and I'm trying to set the filter ID without using an element on the page and without using a customer controller or extension. Based on an ...
3
votes
1answer
445 views

Save Records in Salesforce using setcontroller

I am using salesforce standard set controller and displaying 4 records a page, I have input fields where i entering values and i wanted to save records on save button clicked. I want to create a ...
1
vote
0answers
625 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 ...
1
vote
2answers
2k views

Clicking next button with Standard Set Controller throws VF Exception when edited records not saved

On MVP Office Hours (For those interested, the success community group is here: https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F9300000001oXH), there was a question ...
2
votes
2answers
7k 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
1answer
195 views

Using StandardSetController in APEX Web Service

I have created an APEX REST web service and tried to use StandardSetController in order to retrieve objects for some list view. My idea was to use this built in list view functionality for objects ...