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
0answers
9 views

Share (wizard-like) state between page with controller extension and page with controller

I have a custom VF page to create new or edit records of Type CustomObject__c. Via a Linker__c object such records can be related to other OtherCustomObject__c. To create such links I have a button ...
0
votes
0answers
20 views

can we update the related list object data with standard controller as master object?

I have two objects quote and quotelineitem master is quote and related to quote line item quote---->quote line item Visualforce page : I have kept like this <apex:page ...
1
vote
1answer
26 views

Saving Account Information in a Lead Visualforce Page

I have created a visualforce page for our Lead Details page that displays Account information along with Lead information. I want to be able to save whatever changes our reps may make to the Account ...
4
votes
2answers
148 views

SObject row was retrieved via SOQL without querying the requested field in controller extension

I have written this controller extension: public with sharing class PopupController { ApexPages.Standardcontroller cont; public Request_Change_Reseller__c req{get;set;} public ...
2
votes
1answer
27 views

Can I send a user to an edit page which, when they press Save, will send them to the detail page?

Related: Can I send a user to a standard layout edit page at the end of a wizard? I have implemented a wizard that sends the user to the standard edit page at the end of the wizard. It's working ...
0
votes
2answers
49 views

Retrieve Data from Custom Object in Datatable for a specific Account Id

I am trying to reference a custom object that has a related list on our account page called "SVMXC__Service_Contract__c" and has a child relationship name to accounts of: R00N70000001hzYIEAY. I need ...
0
votes
0answers
26 views

Unable to fetch record from StandardController - OnChange of Inputfield

I have VF page where there is lookup field e.g. XYZ. After selcting a record from XYZ, I want to automatically render ABC record related to XYZ, where ABC is an Inputfield. I have written method ...
0
votes
3answers
30 views

Unable to fetch Record from Standard Controller

Here is snippet of constructor : I have VF page where there is lookup field, onchange of that lookup field I have to render some other fields from another Object using SOQL ---- I have called the ...
2
votes
1answer
136 views

Visualforce pageblocktable view of opportunities in account view - how to control the order?

I have created a table of 'sales data' in visualforce for display on accounts page, by creating custom fields within opportunities, and have created each 'opportunity' as a 'year' of sales data. the # ...
2
votes
1answer
196 views

Inserting a parent and multiple child with the same visualforce page

I have a master detail relation ship between two objects where NdF__c is the parent, and the child is LineExpense__c. I want to insert many LineExpense__c relating to one NdF__c, so I add dynamically ...
2
votes
0answers
55 views

apex:actionFunction action doesn't seem to work the same as apex:commandButton action

I am trying to override a custom object new and edit actions with a simple visualforce page. The desire is to not need a custom controller and just use the standard controller methods. <apex:page ...
3
votes
1answer
50 views

Accessing parent by a standard controller

I have page which uses contact standard controller which is as below <apex:page standardController="contact"> {!contact.account.name} </apex:page> When I pass a valid id for contact ...
2
votes
2answers
165 views

Iterating over related records in visualforce using standard controller

I'm diving into visualforce and the standard controller for the first time and having trouble iterating over a single opportunity's related records. The below code produces an error: <apex:page ...
5
votes
2answers
265 views

Required fields do not allow cancel

I have a custom VF page that I am using as a custom cases page, standardController="case". I have an apex:form with a few apex:inputField to create the boxes. Inside the form I have a save and cancel ...
0
votes
2answers
85 views

what's better, custom controller or extension

I need to create a visualforce page that automatically creates a case and an event about the case creation. Once a user lands on that page, which has one parameter identifying the account, if the ...
1
vote
1answer
234 views

Best approach to cloning records with rollback

I have the below code which works well to clone a case record. In this scenario, we want to insert a new case and save it. But I have a new request to create sort of a quick case where we would only ...
4
votes
2answers
216 views

Get the Id of an object in the standard controller without an extension?

Is it possible to get the Id of an object in a Visualforce page without a controller extension?
4
votes
1answer
602 views

Can you access parent object fields in a 'New' page override without using SOQL?

I have two objects, Parent__c and Child__c, Child__c has a lookup field to Parent__c calledParentId__c. I have overridden the New and Edit pages for Child__c using a Visualforce page with the ...
1
vote
1answer
108 views

Extend standard page with a picklist that contains data from an external system

The requirement is to extend the Campaign page with a custom picklist field that shows data (select options) stored in a 3rd party system (accessible trough a rest endpoint). I know there is the ...
0
votes
3answers
143 views

Mass Edit Sortable VF Page

We are trying to implement a mass edit type VF page that displays a few fields in a list and allows the user to edit one of those fields. We have a requirement that the list be sortable by column. ...
2
votes
2answers
482 views

Unknown constructor 'Name.Name(ApexPages.StandardSetController controller)' when removing RecordSetVar

I am attempting to convert my page to work from List View button into Detail Page button. When I attempt to remove the recordsetvar, I get the mentioned error. Unknown constructor ...
0
votes
1answer
392 views

getting Person Account's “Last Name” , “salutation” and “First Name” field to Visualforce Page

In my org i have enabled Person Account, and i have a visualforce page where i need to get Salutation,FirstName and LastName field from person account, But when i call it using <apex:inputField ...
1
vote
1answer
266 views

Override standard page with VF page and save which has dynamic picklist in it

I have VF page to override standard contact "new" button page, In that VF page i have Project field which will get the picklist value(project name) dynamically when i insert one project(custom object) ...
5
votes
1answer
290 views

which standard controller should be used to override Person account “New” and “Edit” Page using VF Page?

I am overriding person account standard Page with VF page. If I use standard controller as "Account" I am unable to get Picklist field values from "Person Account", If I use "Contact" as a Standard ...
1
vote
2answers
216 views

Modify visualforce input before saving and before reaccessing

Here's the scenario. (a) In standard controller extension for Custom_Object__c, we define custObj as public Custom_Object__c custObj{get;set;} (b) In visualforce we have an input field ...
1
vote
0answers
25 views

How can we associate this process to one record? (Record Id in Controller, Prepopulate Field A and prompt user input for Field B.)

Really looking for some help/insights here..Any guidance would be greatly appreciated!! Here's my scenario: A record id can be obtained in the controller using ...
0
votes
1answer
1k views

Creating New record using Standard Controller and Extension

I have created a page using standard controller and extension. This page should create a record if no id passed and shuold update a record when id passed. Following is the controller public ...
0
votes
1answer
267 views

Query regarding trigger?

I am having following requirement: 1) To get list of all the users for whome profile has been changed. 2) Then query on FRUP (It is a custom object) to retrieve all the records which are associated ...
3
votes
1answer
82 views

What controller to use for a visualforce tab?

I have a VisualForce page that uses an Apex class to provide extensions, and this is what I have when I put that page on the Contact page: <apex:page standardController="Contact" ...
7
votes
1answer
2k views

How do I access the fields of a custom object with a standard controller?

I have a custom object called "Shows." I'm writing a VisualForce page to display some custom data. My code is: <apex:page standardController="Show__c"> <apex:pageBlock ...
2
votes
1answer
973 views

Error: Unknown property 'OpportunityStandardController.opp'

I have a controller extension and I get the unknown property error on page load. public with sharing class ExtensionController{ public ApexPages.StandardController standardCon; ...
2
votes
2answers
466 views

apex detail page is blank

I am trying to display detail of a custom object by using apex:detail. But i am getting no a blank page without any details i try it with Account but it was not working. <apex:page ...
2
votes
1answer
2k views

Visualforce Page and standardController attribute in Apex Page

I am developing a Visualforce page which will be rendered when a Salesforce User arrives by clicking a specific Account. The Apex page looks something like this: <apex:page> ...
4
votes
1answer
174 views

Can there be a Shared Extension across Multiple Overridden Visualforce Pages?

I would like to know if its possible to share a common extension class across multiple Visualforce Pages which use different standard Controllers. For Eg., I've VF_A Page which overrides default ...
1
vote
1answer
2k views

VisualForce page with custom controller and lookup causing JavaScript UI issues

I noticed that I'm experiencing UI issues with every Salesforce instance that I have access to when I create a custom VisualForce page using a custom controller and that I display a lookup field on ...
0
votes
1answer
221 views

Iframed PDF visualforce error on save

I want to be able to save a PDF visualforce page into attachments (in a custom object) I created the PDF as an Iframe in another visualforce page (see below parent page, iframe and controller) When ...
1
vote
1answer
204 views

Is it possible to for a controller extension and visualforce to override BOTH New and Edit buttons?

I currently have a controller extension + visualforce overriding the New button on an object. I'd like to to see if it's possible to reuse this for the Edit button as well. If so, are there any ...
5
votes
1answer
194 views

What methods are available in the standard controller?

Motivation I'd like to use a lot of functionality from the standard controller and only add some additional fields. For example, Lead standard controller apparently provides filtered Converted ...
2
votes
5answers
1k views

How to reproduce standard page style in a Visualforce page

Motivation I'd like to reproduce a standard Lead conversion page style in a custom visualforce page. However, I'm seeing a number of differences. Some are in visual style, e.g. block section ...
6
votes
2answers
871 views

Sort Order of Child Records Using a Standard Controller

Does anybody know of a way to order child records when accessed using a StandardController and displayed with an <apex:repeat> loop? My guess is that it can't be done and I need an extension, ...
5
votes
3answers
3k views

Passing standard controller SObject to a component: problem with custom fields

I want to create a page like this with 2 components: <apex:page standardController="Campaign"> <c:import campaign="{!campaign}" /> <c:message campaign="{!campaign}" ...
3
votes
3answers
406 views

I am getting a SObject row was retrieved via SOQL without querying the requested field

I am getting a little lost here and have read the related topics on stackexchange carefully. I am using the standard controller for a custom object in a managed package. This code works perfectly in ...
5
votes
1answer
149 views

Is there away to pull a users standard layout in edit mode and place it on a VF page?

I know there's a ways to do this using tag to view the detail page, but once you hit edit it will use salesforce standard edit page. I've also created a custom edit page but the problem I'm running ...
4
votes
1answer
442 views

Visualforce error using standard controller in managed package

I have an inline visualforce page which uses a standard controller. I check values from the record object in javascript so I can display some other records in a popup based on the value of ...
5
votes
2answers
1k views

Retrieving custom fields from a standard controller in an extension

How do I retrieve custom fields from a standard controller in a Visualforce extension controller? In the code below, if I remove the hard-coded ID "this.personParentId = '001Z000000CkZ4m';", it fails ...