A controller extension is an Apex class that extends the functionality of a standard or custom controller.

learn more… | top users | synonyms

0
votes
1answer
20 views

Decision to use Custom Controller rather than Controller Extension

I came up with one question which asks me to select two options. Question is: When would a developer use a custom controller instead of a controller extension? Options are: When Visualforce page ...
1
vote
1answer
14 views

Visual Force Page Extension Test Class

I have the below controller written and I have never had to write a test class for one of these so I am not sure how to go about it. Any thoughts? public with sharing class sortController { Public ...
3
votes
1answer
69 views

SObject row was retrieved via SOQL without querying- Using Dynamic References

I am referring to a code from salesforce documentation https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_dynamic_vf_sample_standard.htm where it is shown how to build a list ...
1
vote
1answer
25 views

Make VF Page Commandlink target variable

I have a VF link on a page which creates a new record. It's embedded on a page layout. My problem is that I would like errors to show in the embedded section without redirecting, but if it's ...
0
votes
2answers
20 views

Visualforce Page with Standard controller not updating parent record

I have a relatively simple VF page that is launched from a button on a custom object called 'Inclusion_detail__c. The page uses the standard Controller and is effectively a data entry form for ...
0
votes
1answer
16 views

Visualforce and Apex accessing Object before saving with controller extension

Updating because my question was not clear: I'm trying to override the new and save functionality of a Custom Object on Visualforce page via a controller extension. Here's my .vfp code: <apex:...
0
votes
0answers
16 views

Visualforce page to multi select options and create records [duplicate]

I am creating a visualforce page which can search records of an object called interviewer___c based on email/Name and displays all the interviewer name in a multiselect type box similar to what we see ...
0
votes
2answers
44 views

Delete link on visualforce page fails to delete record

I have done in the sorting, pagination and alphabar navigation and edit/delete link on the same page in standard controller/standardList controller. However, the delete link is failing to delete the ...
0
votes
2answers
42 views

How to provide the refresh button it's refresh current page and showing the same result in apex?

to all. I am trying to provide the refresh button on my page it's have only done on "Refresh the current result of the page and showing the same result". But I have the idea only for that page and I ...
0
votes
1answer
20 views

Alpha navigation bar is not working?

To all I am trying to add the alpha navigation bar to be in my page,It's also to be have the sorting and pagination itself.as like as My Controller , public class StandardPaginationSorting { // ...
0
votes
1answer
13 views

Error: Unknown constructor 'StandardPaginationSorting.StandardPaginationSorting(ApexPages.StandardController controller)'

to all I am trying to provide the sorting and pagination on standard controller with extension by followingly,My controller public class StandardPaginationSorting { // Variables required for ...
0
votes
1answer
51 views

Standardsetcontroller wrapper class

I have an object called performance with a few decimal and text fields and a lookup to the user object. The purpose of this object is for the managers to enter targets for their team members. I am ...
0
votes
3answers
39 views

ReRender outputPanel via commandLink not reRendering anything when pressed

Background: I have a requirement where we need to display a VF page on the Contact object that indicates whether or not a contact has had their contact information verified within the last 14 days ...
0
votes
0answers
16 views

How to read SalesForce IdP SAML Assertion in Custom Controller

in our implementation. I need a way for my custom APEX codes and controller to be able to retrieve the SAML assertion generated from the SFDC platform (IdP). So I can pass the assertion to the ...
1
vote
1answer
18 views

How to query for the object message__c in my program?

a lot of you might find my question really basic but I am beginner. I am writing a visualforce page and here is my code. public class CustomControllerExtension1 { public Account ...
0
votes
1answer
23 views

How can i open a pop up box with event information when event url is clicked in the Full calendar?

I used jquery full calendar and this pageload() on document.ready with list of events in calendar. Here is my Controller: <apex:page controller="NetworkCalendar" standardStylesheets="false" ...
0
votes
1answer
34 views

Create a drop down list in VF Page

I am trying to get a drop down option on my VF page with below code: <apex:page controller="sampleCon"> <apex:form > <apex:selectList value="{!countries}" multiselect="true"...
1
vote
1answer
45 views

Get the value of drop down list that was selected earlier

In my piece of code below, I use select list tag to get user's input for a field of an object. I have a text field type for an object which I am trying to update using a VF page. <...
1
vote
1answer
13 views

Multiple Extenstion with common method name

While using a multiple extension <apex:page controller="ClassX" extensions="ClassA, ClassB"> <apex:pageBlock> <apex:pageBlockButtons> <apex:commandButton value=...
0
votes
0answers
23 views

Pass value from VF to extension

I am facing a behaviour I cannot understand. The feature works fine with custom controller, but not with standard controller extension. Essentially I have inputHidden field which value I update with ...
1
vote
1answer
49 views

How to pass parameters from a VF page to a controller extension

I'm trying to get a few inputs from the user in a VF page and passing them to the controller for processing and eventually updating the page's current record. I've been looking all around for a ...
0
votes
1answer
28 views

Replace custom object tab with a VF page/tab AND keep original SF classic looks

Right now, I have a custom object Errol__c. It has its own custom tab. I wish to make a Visualforce Page that will look exactly the same as when I press the custom object tab. That is, there should ...
0
votes
1answer
19 views

How to concatenate text field from list in visualforce extension [closed]

I am trying to concatenate a formula field for my custom object 'dependants' under the account. As it age it can be a value changed on any day so the field would need to be calculated every time it is ...
1
vote
1answer
12 views

Rerender Error, with controller extension

I am receiving an error when trying to rerender a covenant table: Unknown property 'Loan_Memo__cStandardController.covenanttable' How to I load my table based on the value of the inputField? VF: ...
0
votes
2answers
54 views

How to set record type of records while saving the records?

I have a vf page and its extensions,I am trying to save the multiple lists of a object against a particular recordtype.But i am unable to fetch the record the record type and then assign to the same ...
2
votes
2answers
81 views

Please advice is this a good design for my VFP rendered in PDF

i have a VFP that rendered in PDF format for my Quote. And due to the limitation whereby long text doesnt word-wrap in my table , i decided to loop through my long text content and put a line break ...
1
vote
1answer
77 views

Visualforce Delete Row: Missing id at index: 0

I have a visualforce page where users add and deletes records in a table. My only issue is if a user hits add row then decides to delete that row(therefore the record was never in the database) and ...
0
votes
1answer
46 views

Open record details in a panel within a Visualforce page

I have written a bootstrapped page that has a custom list view panel on the left side of the page and an output panel on the right side of the page. I have the left panel figured out where different ...
0
votes
1answer
34 views

Regarding Visualforce Page and customization

I have created the Visualforce Page ,if that page is Viewed by Particular user,their count and name should be recorded in the record of custom object,for every user count is different,is it possible ...
0
votes
2answers
54 views

VF jQuery Autocomplete: Controller List

I have a jquery autocomplete that is "working" only if I hardcode an array in javascript. Here's what's happening. Type__c is a picklist. Once I change the picklist, I call a method in my extension ...
0
votes
1answer
36 views

Quote Id returns null in extension controller

Controller : public with sharing class QLICustomerPricing{ Quote qte; public QLICustomerPricing(ApexPages.StandardController controller){ this.qte = (Quote)controller.getRecord(); ...
0
votes
2answers
26 views

How to save a VF page rendered as PDF to Notes and Attachments?

My requirement is to store a VF page rendered as Pdf to Notes and Attachments,My VF Page is being used by a custom button ,and code is as follows : Visualforce Page : <apex:page ...
0
votes
1answer
32 views

How to write test class for selectoption

I want to write test class for for below controller Controller public class OrederSendEmail { public List<SelectOption> getEmailFrom() { List<SelectOption> objNames = new List<...
2
votes
1answer
24 views

Force.com Site - Direct User to Record Without Exposing Record Id in URL

I have created a force.com site app for tracking reservations. I would like to be able to have my quests update/read their reservations after creation without using the Salesforce record Id in the url....
1
vote
0answers
35 views

Conditionally Validate fields on VF page

Here is what I need, I have 12 * 3 (36) number fields named after each Month(Jan,feb,march...etc,.) on the VF page for 3 years 2016, 2017 and 2018. Now, if my start date is Jan 2016 and end date is ...
0
votes
2answers
442 views

Call a Salesforce Remote Action Method from JavaScript?

I am creating my UI with React JS and have to call a Salesforce Remote Action from React file. React JS bundles everything into bundle.js and this will be added in a VF Page as an external JS file. ...
0
votes
1answer
12 views

Access VisualForce page with specified credentials

I want to create a VisualForce login page.Only my contacts with their username and password which is filled in the custom fields of account object should be able to redirect to next page.
1
vote
1answer
299 views

Lightning components, how to rerender in lightning components

I am trying to populate list of opportunities in a pagination fashion. here is the output I got But what here I didn't get is action for the next button.... Please find below the code and let me ...
0
votes
1answer
24 views

Error in Delete function inside a vf page

I have two required fields inside a Visualforce Page: prodottoservizio, quant. Inside the page I can build a list of objects shown inside a table. Now I want to insert a Delete Button that deletes all ...
0
votes
3answers
26 views

Set an inputfield inside a vf controller

I have a field on a VF page when a user insert a value in that field and click a button, that value has to be pass to a variable inside the controller extension. The input field is: <apex:...
0
votes
2answers
37 views

Retrieve all Cases related to Account object directly and indirectly on Visualforce page embeded in layout of account record

I want to show all related cases of account record in visualforce page embeded to layout. What is main issue? Standard Account object has related cases. Also Account has related Asset and Contact ...
1
vote
2answers
170 views

Build a String for Database.query

for an exstention controller of a VF page, I need to build a query to retrieve all the lead with a Company name similar to a variable. My variable name is compagnia: Now I'm trying to build the query ...
0
votes
1answer
70 views

VisualForce - Dynamically Update Contact Records based on selections made in Multi-Select style Data Table (Using Wrapper Class)

(Problem / Question listed at the bottom, below explanation content) Background: I've created a relatively simple VisualForce page with the intention of allowing our customers to update data ...
0
votes
1answer
21 views

setting up public facing visual force, but need to direct email recipients appropriately

I'm taking a whack at Visualforce, and am hoping to avoid too much Apex, but maybe this isn't possible. Basically I'd like to direct some 300 recipients of an email to pages that are relevant to their ...
0
votes
2answers
81 views

How to get field values from VF page

I'm stuck with a really easy task. My VF page have StandardController and Extension. I'm using the standard fields for Task object : <apex:InputField value="{!Task.Client_Name__c}"/> So I ...
0
votes
3answers
81 views

Value '[X]' cannot be converted from Text to core.apexpages.el.adapters.metadata.VFSObjectELAdapter

Faced with problem when saving the Task (Log a Call) record. This error shows up below field Subject on edit layout. My save Method is: Public PageReference saveRecord() { Task ts = new Task()...
0
votes
1answer
64 views

Trying to update related object fields from visualforce list

I have a visualforce page with a grid displaying an editable list of records from our Enrolment object. This list also includes a related field from the Contact, which is related to the Enrolment via ...
0
votes
1answer
43 views

(VF) How Do I pull a picklist from a related object as an input field onto a VF page that uses the Standard Controller with extensions?

Scenario: I've created a VF page that uses the Account standard controller with an extension that I created to pull contacts related to that account into a multi-selectable list using a wrapper ...
0
votes
2answers
28 views

Null object error trying to save records from VisualForce page

Opportunities set to best few or better require at least one related custom object record for objects Top 5 product Codes Created custom visual force page using opportunity standard controller and ...
0
votes
2answers
85 views

Pass value from the visualforce page to a global variable of a class

I tried to pass the input field variable value(as provided by the user) to a global variable in the controller. I have the following code. <div class="Modal"> <apex:pageBlockSectionItem ...