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

1
vote
2answers
34 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
226 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
80 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 ...
7
votes
2answers
243 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
39 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 ...
2
votes
3answers
101 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
42 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
27 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
74 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
94 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
100 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
51 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
56 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?
1
vote
1answer
92 views

pagination not working using standardsercontroller

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 ...
3
votes
2answers
135 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
107 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
429 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
162 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
727 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
110 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
214 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 ...
1
vote
2answers
335 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
186 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 ...
12
votes
2answers
939 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
625 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
148 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
366 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
363 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
740 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
1k 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
196 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
3k 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
862 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
1k 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
426 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
522 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
182 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 ...
1
vote
2answers
3k views

How to display 100,000 records with pagination in visualforce page [closed]

I have 100000 records in my database I am unable get records by soql as I am getting governor limit error. Guys, give me example code with pagination
6
votes
1answer
742 views

Use StandardSetController for edit

I am trying to use the StandardSetController to update set of records. the code below was using StandardController to update just a single record. I want to use List for the Case object to iterate ...
2
votes
2answers
991 views

Passing Quote list to StandardSetController, not grabbing quote ID and returns null

QuoteLineItem tempQLI = [SELECT QuoteID FROM QuoteLineItem WHERE Discountable__c='YES' Limit 1]; String quoteId = tempQLI.quoteId; Quote newtestQuote = [SELECT ID ...
3
votes
1answer
1k views

Setting filterId in ApexStandardSetController

I am trying to filter the records based on the selected list view in batch apex. But it fetches all the records and does not apply the filter even though i have used setFilterId String query ...
4
votes
1answer
1k views

Pagination using standardset controller and ability to remove rows from list

I have a list of accounts and i need to also have a ability to remove records from this list. Now this list sometimes gets in a lot of records which causes the page to reach the heap size limit. To ...
3
votes
1answer
4k views

custom list view that allows new filter parameters

I'm looking to create a VF page with a list of records and dynamic filter criteria. The user needs to be able to filter the records based on various criteria and also save those filters for future ...
2
votes
0answers
244 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 ...
4
votes
1answer
5k views

How to I get a test class working for a standardsetcontroller that bases off one record

I have a difficult issue because I have essentially a standardcontroller that runs off the current opportunity but it needs to be used via a relatedlist button on a custom object so it has to be a ...
1
vote
1answer
382 views

Cannot use StandardSetController with ContentVersion?

I am trying to display a list of documents stored in Salesforce CRM Content on a VF page using JQGrid. I used OFFSET for paging. Since the number of records is more than 2000, I wanted to use ...