Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [standardcontroller]

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

1
vote
2answers
134 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
1answer
76 views

Unknown property error on Standard Controller when creating v-force page … but only for some users

I am getting the following error when creating a v-force page in a standard controller extension: System.VisualforceException: Unknown property 'Award__cStandardController.awardAmount' The ...
1
vote
1answer
698 views

How to display picklist values using HTML in visualforce page?

I need to display all the picklist values from the case object using the HTML syntax in visualforce page. <script type='text/javascript' src='https://c.la1-c1cs-frf.salesforceliveagent.com/content/...
1
vote
1answer
19 views

How to query for the object message__c in my program?

a lot of you might find my question really basic but I am beginner. I am writing a visualforce page and here is my code. public class CustomControllerExtension1 { public Account ...
1
vote
1answer
918 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 ...
0
votes
1answer
130 views

standard controller with extension

If we have standard controller with extension controller, extension runs in system mode generally. So now in this case extension controller, will it run in user mode? Provided i don't have with ...
0
votes
1answer
20 views

Based on Recordytype-selection i need to show or hide some values in standardcontroller and extension

When i change the record type value(technical or no technical) , i need to hide/show email__c, isClassTeacher__c and i need to show filtered picklist values based on record type selection for the ...
0
votes
1answer
22 views

How to show custom object fields in standard visual force page

i am trying to add one button in lead detail page layout.on clicking on this button i want show a visual force page showing custom object details.my custom object is tractor__c.so far i am trying this ...
0
votes
1answer
74 views

Error in Visualforce page with standard controller and continuation in extension controller

This is the error I get with the following controller and visual force page: Error: Unknown method 'Module_Test2__CM_Components__cStandardController.renderResponse()' Error is in expression '{!...
0
votes
1answer
28 views

Access VisualForce page with specified credentials

I want to create a VisualForce login page.Only my contacts with their username and password which is filled in the custom fields of account object should be able to redirect to next page.
0
votes
1answer
77 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 ...
0
votes
1answer
128 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 ...
3
votes
0answers
898 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 ...
2
votes
0answers
106 views

Override Opportunity New button with Visual force not populating account name from Related List after record type selection in lightning

I have overridden the opportunity new button with Visual force page and working all well in classic. But we enabled lightning recently and Opportunity new button is working properly but. In ...
1
vote
0answers
20 views

Sales Cloud: Related list and getting the right triggering object

I am using the Account standard object and the Opportunity standard object. I have a lookup relation from Account to Opportunity. A 'Related List' appears on Opportunity related tab. The code ...
1
vote
0answers
167 views

Ideas standard controller

I am building a logic to add an inline visualforce page to Ideas standard layout. I have created a sample visualforce page and added to the page layout, but unfortunately it is not visible when I am ...
1
vote
0answers
119 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
0answers
347 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
0answers
68 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 ApexPages.currentpage().getParameters()...
0
votes
0answers
24 views

Updating child records of a custom object with parent object's standard controller and extension to find related children

so I have a VF page in effect that grabs the child records (Child__c) from a parent record (Parent__c) to fulfill(remedy in this case) a mass update request for the child records of the parent. The ...
0
votes
0answers
85 views

Issue with StandardController addFields() on WorkOrder sObject

I am overriding the 'New' button on the WorkOrder standard object with a Visualforce page. My users will be creating their WorkOrder records from the Case object. I want to get the CaseId using the ...
0
votes
0answers
139 views

VF page w/ Account standard controller but all I can feed is Contact Id?

I'm trying to build a VF page using the Account standard controller, but the only Id I can pass into the page is a Contact Id. Is there any way to pick up that Id, grab the associated Account Id and ...
0
votes
0answers
201 views

Handling Visualforce StandardController.save() exceptions

When the save() method is called on a StandardController any exception thrown (e.g. before-insert validation) becomes uncatchable. Instead the controller automatically adds it to the ApexMessages ...
0
votes
0answers
786 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
0answers
78 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
0answers
1k 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. ...