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
0
votes
1answer
342 views

cover standardsetcontroller in test class

public SFA_LeadNewOverride_VFC(ApexPages.StandardSetController controller) { recId = ApexPages.currentPage().getParameters().get('...
3
votes
1answer
84 views

What exactly is the StandardSetController?

So I understand what it's used for and I know how to use it but, what exactly is it I create? Is it a List or an Array or what? When I build a StandardSetController in the following way public ...
0
votes
1answer
39 views

VF compile error: standardsetController - void.Id

I have to build an quote tab using VF. Since it not possible using general config i am using VF page. I am getting an error while adding the filter and controller. Error is unknown Void.Id. Can ...
2
votes
2answers
1k views

Content cannot be displayed: Too many query locator rows: 10001

How to show a message/convey to the user that there are more than 10000 records when using StandardSetController? Do I need to fire a separate SOQL just to count the number of rows and use the LIMT ...
1
vote
2answers
99 views

Unsupported sObjects for List Controllers

I am new to SFDC and have only been developing for about 6 months, in this time I have noticed some limitations around List Controllers and some standard objects. Is there any way (programatically) ...
0
votes
2answers
3k views

Display child records for specific parent on a visual force page

I am trying to display all child records related to a parent account, but I want to display it on the child visualforce page, not on the parent's. Here is my code. Site Visit1 is the child and Account ...
0
votes
1answer
32 views

Is it possible to easily implement a custom list VF page which works exactly as standard one does

My company wants to add a custom component(a header) at each tab page which is a list page. There is no magic implementing the pageBlockTable. However, I do find implementing it with different views ...
7
votes
1answer
746 views

Maximum stack depth reached: 1

According to salesforce doc : Total stack depth for any Apex invocation that recursively fires triggers due to insert, update, or delete statements is 16. But strangely for my case, I am getting ...
0
votes
0answers
507 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 {...
2
votes
1answer
993 views

StandardSetController.getRecords() is returning unrelated records

In an VisualForce page I am using a standardController on the Quote object. I also have an extension that has a constructor that takes in a standardSetController. The standardSetController.getRecords()...
2
votes
0answers
456 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
2answers
561 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
509 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 records....
5
votes
1answer
336 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 ...
8
votes
1answer
1k 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
60 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 getListViewOptions(...
7
votes
1answer
648 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
2answers
7k views

Difference between StandardController and StandardSetController?

I have read documents for StandardSetController, but I don't understand what it is or why to use it.
11
votes
1answer
4k 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
976 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
256 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 SelectOption(selectOptionObj.getValue(),selectOptionObj....
3
votes
1answer
4k 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 (1.....
10
votes
2answers
3k 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
341 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 ...
5
votes
4answers
3k 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
1answer
529 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
472 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
664 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 ...
3
votes
1answer
3k 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
109 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 wouldn'...
0
votes
2answers
317 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
641 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
706 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
212 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
3k 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
934 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
3k 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
242 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
2answers
590 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 ...
3
votes
1answer
978 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
460 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
2k 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
1k 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
352 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
2answers
683 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
3k 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 values....
1
vote
1answer
706 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 code....
2
votes
1answer
996 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
5k views

External Entry Point Issue - Any Suggestion/Solution

Here is my Class public with sharing class MassDeleteLeadController { public MassDeleteLeadController (ApexPages.StandardSetController controller) { currentStep = '1'; controller....
2
votes
1answer
328 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 ...