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
1answer
43 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
57 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
33 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
14 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
57 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
50 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
120 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
39 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
23 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
73 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
39 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
103 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 ...
4
votes
1answer
123 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
129 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
251 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
403 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
489 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
54 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
25 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
136 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
2answers
251 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
119 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
233 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
937 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
199 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 ...
2
votes
1answer
60 views

Allow my customers to edit their details via force site

I want to allow my customers to be able to sign into my force.com site (via authenticated website access) and allow users to view and edit certain fields related to them (i.e. email &phone details ...
0
votes
1answer
158 views

can we use single controller in two VF pages?

Here is a scenario where i have a search page for users to select and display the search results. I also have a button to generate the pdf. I have a list of account in the controller which displays ...
2
votes
1answer
132 views

Test custom controller that does not use parameters directly

Given a custom controller that uses a record selected by a standard controller (not through id parameter), how can I ensure that the appropriate Custom_Field__c field is available in the unit test? ...
0
votes
1answer
84 views

I want sync salesforce objects and my web application. How? [closed]

How to sync salesforce custom objects and my web application? I already tried that but I am fully confused with that. Please tell me how can I proceed ?
2
votes
2answers
84 views

Populating standard name field with a case number

I am trying to populate the standard name field of an object with the case number. I have tried to use an apex class to accomplish this. Here is the code I used: GW_Volunteers__Volunteer_Job__c ...
1
vote
1answer
254 views

Checking if object exists on controller

I'm trying to handle the edge case where a user hits my page without the Id being set for whatever reason. However, I'm having problems detecting when no object is loaded. I tried this: private ...
1
vote
1answer
3k views

How to display a Related List in a Visualforce page

Can any one help me out ?I'm Creating an OpportunityLineItem(Opportunity Product) page in Visualforce page and now how should i call the related list(Schedule) fields to get display in Visual Force ...
0
votes
2answers
304 views

how to get a 3 Tables side by side in a Table using HTML

I have three different tables with part number ,Pricing Request and Quantity.All these table should be created in a table with different tables.I have used html table but it comes on below the other ...
0
votes
4answers
544 views

How to call the parent fields in a child object in visual force pages

Can any one help me out.Any help is very much appreciated. I have a custom object name as "RFC__c" and it has a lookup relationship with opportunity object.Now i would like to get the opportunity ...
1
vote
0answers
112 views

How do I “cast” concrete types in Visualforce?

Apex StandardSetControllers are powerful. I love the ability to new one up and dump it on a page. Here's a contrived example, where a Contact has many Engagements with ratings etc: public with ...
1
vote
2answers
97 views

ERROR on VF PAGE :it should only display the Account Name

Can any one help me out with this Error on Vf page.Any help is very much appreciated. When i test in my Sandbox ,it just display the a/c name .Similarly when i check in Production for one of the ...
1
vote
2answers
113 views

custom extension has without sharing annotation but still runs in user mode

I have created a custom controller that extends a standard controller. My custom extension is defined 'without sharing'. Nevertheless, it seems to execute 'with sharing'. I get the feeling that an ...
0
votes
0answers
309 views

When we click on Button it Should generate a PDF FORM with the Ship to and Ship from details

Can anyone help me out with this requirement ?Any help is much appreciated. We do have two Buttons as GeneratePicklist and GenerateInvoice created using Execute Javascript ,ON a detail page button. ...
2
votes
2answers
608 views

Newbie VF Question: Save action not saving record

I have the following basic VF page to update fields of an Asset object from a Case page: <apex:page standardController="Case" > <apex:form > <apex:pageBlock title="Update Asset ...
1
vote
2answers
743 views

Error in VisualForce Page as :List index out of bounds: 0

Can any one help me out with this Error ??Any help is much appreciated Error in VisualForce Page as :List index out of bounds: 0 Here is my VF Page and the Class. Visual Force Page : ...
6
votes
1answer
416 views

Standard Controller behavior with not available ids - behavior changed?

Question Do standard controllers no longer throw exceptions if the current user doesn't have access to the passed in id? Has this always been that case or did this just recently change? Hoping to ...
-1
votes
1answer
169 views

multiple Standardcontroller

I have to use VF page of a custom object in Account page layouts.Please find my apex class as below. Apex class: global with sharing class poistionController { public HCP_Depth_Tracker_OAPI__c ...
1
vote
1answer
203 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 ...
1
vote
1answer
154 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
5k 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
2answers
62 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
621 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
74 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
98 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 ...
4
votes
1answer
1k 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 # ...