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

4
votes
1answer
77 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
29 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
93 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
122 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
116 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
49 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
2answers
81 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
196 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
173 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
115 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
170 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
121 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
22 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
665 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
170 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
56 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" ...
6
votes
1answer
861 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
601 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
306 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
138 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
198 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
186 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 ...
4
votes
1answer
179 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
722 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
2k 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
337 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
137 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 ...
3
votes
1answer
395 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 ...