A StandardController is a built-in controller available for standard and custom objects to facilitate the easy creation of Visualforce pages.

learn more… | top users | synonyms

1
vote
1answer
45 views

Bind Data to Lightning Design System in a Visualforce Page

How can I bind data to controls built in the lightning design system within visualforce. It seems that it's more HTML/CSS based vs apex:control based. Changing my question to refine and make more ...
0
votes
0answers
35 views

Can you display fields from parent record when creating/editing record in visualforce page using a standard controller (only)

What I want to do I thought this would be easy, but it didn't work. In researching, I found two conflicting sources of truth, so posting the question here. I am using a simple visualforce page to ...
0
votes
2answers
49 views

Visualforce - Standardcontroller components are not rendering when called from JS

I am trying to preview the email template inside a Visualforce page, and for this purpose, I query for the EmailTemplate record's body inside JavaScript, and then I let the standardcontroller do rest ...
0
votes
2answers
24 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 ...
3
votes
1answer
46 views

Overriding standard object to Visualforce page

I'm trying to override the standard page to a custom visualforce page and as you see in the screen shot I do not see the page that I have created, what I'm missing? SETUP-->CUSTOMIZE-->ACCOUNTS-...
0
votes
1answer
21 views

cover standardcontroller extension in test class

public DiscoverOrg_ConflictResolver(ApexPages.StandardController controller) { LoadPage(); // Research request start reportSubmited = ''; reportNotSubmited = ''; ...
6
votes
1answer
94 views

Queues, Email Notifications, Standard Controller Extensions. Oh My!

Created a controller extension for the standard case controler. we set the OwnerId using custom save logic, but it doesn't seem to matter what i do, Queue Notifications are never sent out to members. ...
0
votes
0answers
34 views

How to avoid page reload on standard Edit action?

I have two pageBlocksection and i put QuickSave action on first PageBlocksection and it's working fine and it's rerender the next pageBlocksection but Now, i want one button on Second pageBlocksection ...
0
votes
2answers
47 views

How to avoid page reload on standardController standard action (Save)?

i am using stadardcontroller Opportunity on my visualforce page but my concern is i don't want to reload that Opportunity detail page when i click on Save Button... Code : <apex:commandButton ...
0
votes
2answers
74 views

Access a variable in VF page from Controller without using get set method

I have a visual force page as below: <apex:page standardController="Interview__c" extensions="SkillReviewExtension"> <apex:form > <apex:pageBlock title="Candidate Skill ...
1
vote
1answer
34 views

How to Navigate to Contact Creation Page

My use case is that I have overridden the 'View' button with a Visualforce page which immediately redirects to either a Visualforce page or the standard detail page based on the RecordType. I would ...
1
vote
1answer
104 views

Diffrence between StandardController and StandardSetController?

I have read documents for StandardSetController, but I don't understand what it is or why to use it.
-1
votes
1answer
29 views

Constructor not defined: [ApexPages.StandardController].<Constructor>() at line 5 column 43

this is my class public class ProtocolDeviationPDFController{ public CTMS__Protocol_Deviation__c protocolDeviaitonObj{get;set;} public Map<String,Boolean> sourceDeviationMap{get;set;} ...
2
votes
2answers
156 views

Id none must be 15 characters

I am getting below error during execution time for below code in Apex page. I am unable to assign the value from here to standard controller. Can someone please help me? Apex Page <apex:...
0
votes
0answers
49 views

Pass input field lookup value to standard controller

I have below Page code which I am unable to put values to the new record instance that gets inserted with commandbutton click. Can someone please let me know? Apex page <apex:page ...
0
votes
2answers
145 views

All radio button get selected at same time

In my below code in the section where I used radio button : <apex:page standardController="Account" recordSetVar="accounts"> <apex:form > <apex:pageBlock title="Account List" id=...
0
votes
2answers
152 views

account list as radio button options in VF page

I have the below VF page where I am trying to list the account and contact details as radio button options: <apex:page standardController="Account" recordSetVar="accounts"> <apex:form &...
1
vote
2answers
57 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
185 views

SOQL joining multiple tables to get account info from record owner

So I have a custom object standard controller and I want to auto-populate a field on a form from the users account record. In preparation to build my controller I need a valid SOQL statement and I'...
2
votes
2answers
132 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
1answer
77 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 ...
1
vote
0answers
17 views

On saving page error : List controllers are not supported for OrderItem [duplicate]

I am trying to do edit for selected OrderItems using StandardSetController, however, when I am saving page, I am getting following error. List controllers are not supported for OrderItem. ...
4
votes
1answer
192 views

Call controller method from different class

How can I call a method structured like this: public with sharing class Calculator { private ApexPages.StandardController l; public Calculator(ApexPages.StandardController l) { ... } ...
1
vote
1answer
29 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" title="...
0
votes
1answer
34 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, ...
2
votes
1answer
141 views

New, Edit, Save, Submit buttons in VisualForce page

I am a beginner with VisualForce pages, and a 2 week developer with SalesForce custom objects and APEX triggers/classes. I have built a custom object called Change Request (with API name ...
3
votes
2answers
124 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 ...
3
votes
3answers
135 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 ...
5
votes
1answer
57 views

standard controller | incorrect signature | extending classes

I have: public virtual classA{ public classA(ApexPages.StandardController controller){} } public virtual classA_Test extends classA{ classA_Test(){} } Error in classA_Test: Method does ...
1
vote
1answer
31 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
100 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
2answers
348 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 ...
1
vote
2answers
31 views

Getting List of visualForce Pages depending on standardController

I have a requirement. I want to get list of visualForce pages that has Account as its standard controller. Like if any page has started like <apex:page standardController='Account' > Then I ...
0
votes
1answer
339 views

Assign value to a static variable declared in one apex class from another class

How to declare a static variable in one class and assign it a value from another class and then use it in visualforce page of first apex class. My code is : <<-------- 1st Visualforce page----...
-1
votes
1answer
30 views

Need help connecting my Visualforce Page with Standard object detail page

I have created One VFPage and controller. VFPage is to create new opportunity. After they create opportunity I want user to come back to this same page if they edit the opportunity, I have tried ...
0
votes
0answers
29 views

Universal VF pages and controllers for all objects

I'm pretty new to Visualforce and Apex. I created a custom object (lets call it CustObj) that can be accessed from a related list on Opportunity, Lead, and Contact. What I ended up doing was creating ...
0
votes
1answer
61 views

Updating user's phone and fax number from visual force page

<apex:page standardController="user" > <apex:form > <table> <tr> <td> First Name ...
-1
votes
3answers
1k views

Getting access to a variable from an Apex class into a Visual force page that has standard Controller

How can I use the variable value from apex class into a visualforce page which has a standard controller? Any help is appreciated.
5
votes
2answers
896 views

IN operator must be used with an iterable expression : For loop

I am getting Subject header error at below line. Can someone let me know what is the issue? Line: for (Compliance_Incident_abv__c myContact : [select ID,ManagerEmail_abv__c,RepEmail_abv__c,...
0
votes
2answers
126 views

When to use ApexPages.StandardController [closed]

I want to know that when to use ApexPages.StandardController in controller. Anyone can explain me with proper usecase. --tia
0
votes
1answer
365 views

How to pass ContactId to Visualforce page, standardController is Opportunity

I have a visualforce page where I want to pass the Contact Id into the visualforce page. This is because I have a flow imbedded in the vf page, which needs a contact id to create Opportunity COntacts. ...
1
vote
2answers
961 views

Creating Test Class for VF Page Controller

Having trouble creating a test class for my VF Page Controller I am trying to develop. I have created an inbound change set in my Production, and an outbound in my Sandbox. Now I am at the step of ...
0
votes
2answers
50 views

How overriding works in standard/custom controllers?

1) If I have a standard controller and two extensions Ext1 and Ext2 and if both Ext1 and Ext2 have the save method, then whose save method will be called Standard controller's, Ext1's or Ext2's? <...
5
votes
1answer
299 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 ...
0
votes
1answer
73 views

Same test class works in one sandbox but not another

I have one test class which is working fine in one sandbox but same test class is getting failed in other sandbox. Below method is not working in Sandbox which may be cause of error. Error: ...
1
vote
1answer
269 views

Visualforce page (Contact Standard Controller with extension), transfer Field value to “new Case” page

I have an visualforce page with logic (VF page), which have a textfield (Text1). On load, the textfield is populated with a value from a parameter from the URL which is used for loading the VF Page. ...
0
votes
1answer
66 views

add method to custom object to use it in visualforce page

i have a custom object called File_Uploaded__c and i have a visual force page which will generate details page for the file based on its fields: here's the definition of my visual force page: <...
1
vote
3answers
158 views

How can I change standard fields using jQuery in an embedded VF page?

I'm trying to have some code run when the Billing Address field (or sub-fields) of an Account is changed. This code will clean up the address, and then I want it to replace the contents of the Billing ...
1
vote
0answers
67 views

Is it possible to inject css into standard Salesforce pages

Our designer wants to change the look and feel of the header and sidebar of the salesforce pages including standard ones. I can't think of the way of injecting css code into standard pages. Is that ...
1
vote
1answer
265 views

Sorting functionality using dynamic soql

I have created a visual force page in Account page that displays related opportunities by RecordType(5 Records at a time) for the given Account and when click on Go to List it directs to new VF page ...