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

learn more… | top users | synonyms

1
vote
2answers
23 views

Re-rendering section on picklist value change - picklist value is always null

On a Visualforce page, I have a picklist (apex:selectOption). When a user selects certain values, additional input fields have to appear. Otherwise, they should be hidden. There are a couple of ...
1
vote
1answer
22 views

The installed managed class zqu.ProductSelectorController is not visible

I am getting this error trying to use a custom visual force page in place of a managed package visual force page. I made my custom controller global, thinking that it was mine that needed to be ...
0
votes
2answers
16 views

Pass Record ID from Account to Visualforce Page without Saving Visualforce Page

I want to pass the Record ID to a visualforce page and reference that ID on an outputLink URL to take them back to the account. The User cannot "Save" the visualforce page, so how can I keep the ID? ...
0
votes
1answer
30 views

SObject row was retrieved via SOQL without querying the requested field: Opportunity.OwnerId

I have the following code: public with sharing class ExportCheckPageController { public boolean checkYes { get{if(checkYes == null) checkYes = false; return checkYes;} set;} ...
2
votes
2answers
81 views

Unknown Property on Controller Extension

So I have a standard controller and an extension that I'm trying to use to call back a list from a different object to use in a PageBlockTable. In the visualforce page I declare my standard ...
0
votes
0answers
16 views

Insert failed. attachmentimg: Class.AttachmentImgController.saveImg: line 26, column 1

Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Parent]: [Parent] Error is in expression '{!saveImg}' in component in page ...
0
votes
1answer
52 views

How can i get case ID in VF page from a custom object? [closed]

I have created a custom object work_order__c in this custom object i have created a case field as a master-detail to work_order__c. How can i get the case id in VF page for saving the workorder? I am ...
0
votes
1answer
27 views

Controller Extension Error

I have a VF page on a custom object and I am trying to create a button that will essentially mark a checkbox field as TRUE and save the record. I created a controller extension and I have a Repeat ...
2
votes
1answer
21 views

User Role with IF Statement

I am trying to populate a field in a Visualforce page for custom object using a controller extension. I would like to populate the field with one value if the User Role of the person creating the ...
0
votes
2answers
22 views

Compile Error: Initial term of field expression must be a concrete SObject

I have a custom controller extension below which pre-populates the Opportunity ID and a Contact Role ID to a Visualforce page for a custom object that has a Master-Detail relationship to the ...
1
vote
1answer
19 views

How to create contact detail page using controller? [duplicate]

How to create contact detail page using controller? <apex:page standardController="Contact" extensions="ContactDetailController"> <apex:form > <apex:pageBlock mode="maindetail" ...
0
votes
1answer
34 views

how to create contact detail page using controller [closed]

public with sharing class ContactDetailController { private ApexPages.StandardController standardController; public string conId{get;set;} public ...
0
votes
1answer
20 views

List of existing records in custom object

I am trying to list the existing records for the current user in my VF Page: here is the start of my page with the controller and extension defined: <apex:page id="ChangeRequestList" ...
0
votes
1answer
24 views

VF Controller Test not picking up Field on Parent Object

I have a VF Page for a Custom Object that asks a User for a PIN and checks it versus a field on the Contact Object which is it's direct Parent. This Controller Extension is used for 2 other VF Pages, ...
0
votes
1answer
27 views

Lookup manager Name from User object in VF Page

I am building a VF page for my custom object Change Request. In my object trigger on Save, I populate the Manager field of the record with this code: if (trigger.isBefore && ...
3
votes
2answers
50 views

How to Write Test Class for Standard Controller Along With Extensions

Hi Everyone I'm finding it difficult to write test class for this class Class public class SendEmailReceipt{ public Payment_Receipts__c Rec; public string em{get;set;} public id ...
-2
votes
1answer
32 views

Ending position out of bounds: 18

I have a Custom Edit button. When clicking the Edit it is showing the error as "Ending position out of bounds: 18" Below is the code for class.Thanks public with sharing class ...
0
votes
1answer
29 views

How to access User's Profile fields in visualforce page Javascript portion

I want to access a custom field of my administrator profile in a Visualforce page which has a standard controller i.e. "Company__c". I want to access the custom field in javascript portion of that ...
3
votes
3answers
51 views

Standard Controller OR Custom Controller

When and how to decide whether to go with Standard Controller OR Custom Controller? I have created so many vf pages,classes, extensions but still I'm not sure to include standard controller or custom ...
0
votes
1answer
15 views

Merge Fields not updating in Controller

I have a basic form in which I need to fill in details about a Case. The form also has a section to fill out Account information. So my standard controller is Case with an extension: CaseInputFormExt ...
0
votes
2answers
73 views

Pass a parameter from one controller to another controller

I would like to know how to pass a parameter from one controller to another controller? For example I am trying to pass the accountId value by using the following code in the first controller public ...
1
vote
1answer
25 views

standardController & extensions

Created a Visual Force Page as follows: <apex:page standardController="Opportunity" extensions="c_Scrubber" docType="html-5.0"> the c_Scrubber.apxc class is constructed as follows: public ...
0
votes
1answer
23 views

StandardController.save() not showing validation rule

I have a custom visualforce page with a standard controller and extension class. I have created my own save Function in which I need to first update the standard controller record that I am editing, ...
0
votes
0answers
18 views

recalculateFormulas() method on Extension [duplicate]

I have an inline editable VF page embedded in an Account record detail page. Within that VF page, I have a field that drives the value of a Formula/Image field on that same child record being ...
0
votes
2answers
92 views

Use Account Fields in Case Standard Controller Visualforce Page

I am trying to create a printable packing slip via visualforce page in a button on the case object. I've created the button and everything seems to be working fine UNTIL I try to reference fields on ...
0
votes
2answers
34 views

How to add new fields to a VF page when they are not included in the custom controller used for the page

I have a custom controller and VF page which allow my users to create and save a contract by using several information fields on the opportunity and related account page. Since this was first created, ...
0
votes
1answer
33 views

Cannot create new Product with custom visualforce page

I have a custom visualforce page that has the Product2 standard controller and a class as extension. The objective here is to make it possible to enter the product information, and the user can click ...
0
votes
1answer
66 views

Is apex getter method runs only once regardless of how many times it is called on VF page?

I have a basic question. I have a big VF page with many sections which render/hide based on some flags. The flags are set in constructor of controller extension and are mostly depend on the logged-in ...
0
votes
0answers
20 views

Access product field and sorting of each column

I need to Create a new Button on Account detail page, on click of this button new VF page has to be displayed and it should show the opportunities based below conditions. Opportunities Stage - Not ...
0
votes
1answer
22 views

Not getting opportunity against the current account

I am trying to create a Vf page on click of a custom button "Show opportunities" on account detail page.Currently when i preview my Vf page it shows only two button "Proceed with Selected" & ...
0
votes
1answer
28 views

Custom Case Form Not Working With Controller

I am looking to create a web form that will create cases with the information filled out on it. Right now I am just trying to get the basic nuts and bolts working. I have built a form, used the ...
1
vote
1answer
33 views

Best optimized way to get logged in user info and set variables in apex controller

I want to know the best optimized way to access current logged in user's information and set few flags. I have a controller extension and I have set flags in constructor like this: User u = [SELECT ...
0
votes
2answers
172 views

How to display records on a pageblocktable based on the value of a picklist field?

Hi i am new to salesforce. I want to display some records on a pageblocktable, which must be based on the picklist field. e.g. If i select Quarter4 from quarter picklist field pageblocktable must show ...
0
votes
1answer
59 views

Bulk update records from inline VF page pageblocktable?

Hi I am new to salesforce.I have one inline VF page on contacts layout. I have written following code to show existing records of that contact and bulk update various records of a custom object, but ...
1
vote
1answer
37 views

I am trying to override contact page with custom look up.Getting error

Error:while clicking custom lookup saying "Unknown constructor 'LookupPopupController.LookupPopupController()'" Visualforce page : <apex:page StandardController="contact" ...
1
vote
1answer
31 views

Test Class for Visualforce Extension

I have a custom controller on a custom object and I am trying to write a test class. However, when I try to save the test class, I get the error: Compile Error: Method does not exist or incorrect ...
0
votes
2answers
44 views

How to use component on Email Template to calculate Table SUM

I have an Email template with a table, that I want to have a sum of a column. I tried to use a component with a custom controller, but after a couple of hours i didn't achieve any result. In my ...
0
votes
0answers
22 views

not able to see updated fields from second tab in controller method (is it a problem with View State?)

I have two tabs "PERSONAL" and "EDUCATION, in one tab I am displaying few fields of Contact (studentContact variable in Controller) and in another tab I am displaying few other fields. Both the tabs ...
1
vote
2answers
71 views

How can I compare a field to another field in a different list through a SOQL WHERE clause?

I am building a Visualforce PDF page with a controller extension to display details from the parent object and child object in the same table. The table's first two columns reference the records list ...
0
votes
1answer
31 views

Assistance with test class for VF controller extension

I have a controller extension for a visual force page that currently has 0% coverage. A test was never written for it and I'm quite a novice when it comes to programming but I've got to start ...
2
votes
1answer
143 views

Visualforce: Selected InputCheckbox value not updating

** UPDATED (Simplified my custom object to no longer be a wrapper within a wrapper) ** Since posting I've made some adjustments, so at the moment I have a custom wrapper object called ...
0
votes
0answers
86 views

Visual Force - Wrapper Class integration

I am having issues integrating a wrapper class generated in one controller/VF Page into another Visualforce Page displayed. With an action, the selected accounts generated by one VF Page would be ...
0
votes
2answers
23 views

Command button action using controller method

I have a command button where the action is a controller method. I am getting a visual force error Formula Expression is required on the action attributes. I did some looking up and this requires ...
2
votes
2answers
158 views

JavaScript remoting in Visualforce

I need to remotely call an apex method in a Visualforce controller, but the JavaScript code is not working. Controller method: global with sharing class MemberPoliciesController { @remoteAction ...
3
votes
2answers
56 views

System.NullPointerException: Attempt to reference a null object

Here I have 3 VF Pages (ProjectCreate1, ProjectCreate2, ProjectCreate3) and i'm using an extension (ProjectCreationextension) for Standard Controller. The Error is at line 70, saying that the ...
2
votes
2answers
216 views

Launching Flow using VF page

I'm attempting to run a flow from my first VF page. I was able to construct my code using the concepts I learned in another StackExchange post. I can get the flow to run just fine using the VF page ...
5
votes
1answer
163 views

SObject row was retrieved via SOQL without querying the requested field. Transaction_Survey__c.Transaction_Score_Other_Reason__c

I'm getting this error in a Visualforce page I'm working on. I understand that this error comes up when you try to reference a field you haven't queried, but the problem is, I have it referenced on ...
1
vote
1answer
252 views

Help displaying aggregate results in footer of pageblock table

I am trying to create a Visualforce page to display a list of related records (lookup relationship) in a PageBlockTable. I would like to include a footer row that displays the sum of one of the ...
1
vote
1answer
100 views

How to save updates to a related record on a visualforce page

I have a visual force page that dynamically displays records attached to a case. When edited I need these to be updated when a user presses save. Right now it is not saving. Visualforce page: ...
5
votes
2answers
214 views

Test ControllerExt for Flow

I am trying to get coverage up for the following controller extension which I am using with Flow public class ClosedLoopMarketingFlowExtension { private final Contact cont; private ...