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

0
votes
2answers
17 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" ...
0
votes
2answers
19 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
34 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
41 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 ...
2
votes
2answers
86 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
53 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
16 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
109 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
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
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, ...
2
votes
1answer
54 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
52 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
53 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 ...
4
votes
1answer
53 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
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
25 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
101 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
23 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
165 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 ...
-1
votes
1answer
28 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
25 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 ...
-1
votes
1answer
42 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
412 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.
4
votes
2answers
490 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 ...
0
votes
2answers
92 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
193 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
421 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
41 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? ...
0
votes
0answers
25 views

Case standardController set default listviewoptions value

Is it possible to set the default selected value of the standardController for Case? <apex:selectList value="{!filterId}" size="1"> <apex:actionSupport event="onchange" rerender="cases"/> ...
5
votes
1answer
168 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
62 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
236 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
51 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: ...
0
votes
0answers
57 views

VisualForce page(URL with parameters), using parameters to search Salesforce and show contact

I have a VisualForce page, where I want to show a contact, with some customized buttons. The VisualForcePage will recieve three URL Parameters: lastName, firstName, customerNumber. Based on these ...
1
vote
3answers
113 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
60 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 ...
0
votes
1answer
161 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 ...
5
votes
1answer
254 views

Standard Controller with Lightning

Is there a possibility where I can create a Lightning Component without writing a Custom APEX Controller? For example in Visualforce page we could use a StandardController and implement a standard ...
0
votes
2answers
254 views

Inline VF Page is returning Attempt to De-Reference Null Object Error

I'm experimenting with the code below from another post on stackexchange: All I'm trying to do is display a VF box in Opportunities to instruct Users on what to do at each stage. It uses a custom ...
2
votes
1answer
524 views

URLFOR($Action.Account.Edit,Account.Id,null,true) redirects to edit page but unable to save or cancel

I'm using Account edit button override with custom visualforce page. In the visualforce page, it correctly redirects to that particular Account edit page, but the save and cancel button doesnt doesnot ...
1
vote
1answer
597 views

override standard edit button based on recordtype

I have a requirement to show different edit layout, based on recordtype, using standard edit button override. I'm trying to create a visualforce page and assign it to the edit button, refrering this ...
2
votes
1answer
737 views

StandardController of Account to show a pageblocktable of related child object from an extension errors out

I have a object Competitor_Mapping__c that has lookup with Account. In the page, i have used standard controller of Account to fetch the current Account id from URL, used in a SOQL to populate a list ...
0
votes
1answer
76 views

Visualforce Event page Standard hour picker and duration fields

I want to add in my visualforce the hour picker and the duration standard fields This is the target: Now I have this in my visualforce page: There is a way to put the same fields maybe using ...
0
votes
1answer
33 views

Visualforce StandardController Event based on PageLayouts

There is a way to create a dynamic visualforce page and render the fields depends of the page layout?. Now I have 2 page layouts with different fields and I won't to create two visualforces. I'm ...
3
votes
1answer
190 views

StandardController delete() method problem

Does somebody know what can cause the problem that StandardController delete() method doesn't delete the custom object from the context. My extension for Standard Controller has such method: public ...
1
vote
3answers
508 views

How can i pass my object ID to my VF page using a custom button?

I have a custom object, Deal Registration, that can have a list of Products added to it. I create a junction object DealRegProducts. While on a Deal Registration, the user would scroll to the related ...
2
votes
1answer
213 views

“Data not available” when using Database.rollback() in custom save action

In my custom edit page for LineItem__c records I have overriden the save button with my own implementation which does not only save the record itself but also change to child records. <apex:page ...
1
vote
2answers
305 views

Show values in VF page from both map and list

I have a requirement to show map values and list values simultaneously in a page. Can someone suggest a wayout? Apex controller: public class IncidentDetailExtnController{ Incident__c oInc ...
0
votes
2answers
1k views

How can I write a unit test which includes ApexPages.StandardController methods?

Currently looking at the Using Dynamic References with Custom Objects and Packages tutorial. For reasons I won't speculate on, step 7 included the controller extension code (again) instead of the ...
3
votes
1answer
321 views

How can I test create an instance of a VisualForce Controller Extension for testing?

Typical of custom controller extensions, my extension has a signature public MyVFCtrlExt (ApexPages.StandardController standardController) I'm currently trying to figure out how to write unit tests ...