Tagged Questions

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

10
votes
1answer
199 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
169 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 ...
0
votes
0answers
30 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
149 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
54 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
53 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
158 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
123 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
82 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
313 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
213 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 ...
2
votes
1answer
368 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
784 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
184 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
228 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
950 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
4k 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
116 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 ...
0
votes
2answers
2k views

How to display 1 lakh records with pagination in visualforce page

I have 100000 records in my database I am unable get records by soql I am getting governor limit error Any guys give me code example with pagination Thanks in advance
6
votes
1answer
533 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
665 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 ...
2
votes
1answer
613 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 ...
3
votes
1answer
878 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
3k 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
162 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
2k 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
279 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 ...
2
votes
2answers
253 views

Check whether an object is in a standardsetcontroller

If I have a StandardSetController and an object ID, is there a way to check whether the object would be included in the StandardSetController, short of looping through all of its objects? Best ...
1
vote
1answer
282 views

Visualforce page throws error if refreshed after a while

I have built a customer portal using Force.com sites. All of the UI is custom built using VF pages with apex controllers. I am displaying some records using pagination with the standard set ...
5
votes
1answer
212 views

Display bookmark link on detail page to inline VF page

How can I display an inline visualforce page on a page layout and have Salesforce generate the bookmark link at the top of the detail page, like it does for related lists? Currently, I can do this ...
8
votes
1answer
3k views

StandardSetController List Instatiation and setFilterId

I'm having an issue using a List to instantiate the StandardSetController and applying a list view filter id. Here's an example of using a List for instantiation as detailed at ...
4
votes
2answers
1k views

Apply List Views to large pagination sets

I want to apply a list view to a standard set controller (only way to apply is a list view is the standard set controller) If the my query returns the maximum number of rows in a SOQL query: 10000 ...
3
votes
1answer
321 views

List controllers are not supported for Profile

Is there a workaround for "List controllers are not supported for Profile" error in visualforce page? Am creating a simple visualforce page to display the profiles in a data table with the pagination ...