Skip to main content

Questions tagged [standardcontroller]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
144 views

You do not have the level of access necessary to perform the operation you requested

I am facing the following error while updating account on contact, it sounds weird to me as the logged in user has modify all access on permission set on both account and contact objects. Its coming ...
Satishakumar Awati's user avatar
0 votes
2 answers
71 views

Error in PDF VisualForce

I am trying with this code to retrieve the score of year-1 and year -2 and display it on my PDF. the error I have is: Unknown property 'Retail_NFT__cStandardController.records' =>VisualForce : <...
laila19's user avatar
  • 21
0 votes
1 answer
69 views

Apex Controller - How To Access Read-Only Variable In Test Class

I've been searching for hours to write a test class for the Controller. Scenario: All Visualforce Page will use this controller to export a CSV/Excel template from List View. This Controller has ...
Pam's user avatar
  • 107
0 votes
1 answer
176 views

Visualforce -<apex:inputField> not displaying values when in <apex:pageBlockTable>

I am trying to display a form wrapped in a table with inputfield but it does not return any value although the console says there is no error with my code. Please see my code below; <apex:page ...
Afonja's user avatar
  • 3
2 votes
0 answers
396 views

Dynamic Record Ids in Embedded Visualforce page within Lightning Record Page

We are working on an AppExchange app, where we need to embed the below widget code into Salesforce lightning record page. <!--- EmbedWidget Visualforce Page --> <apex:page controller="...
Ashish's user avatar
  • 2,372
1 vote
0 answers
162 views

Pagereference Return is getting cached and not rendering latest UI until refresh

I have a requirement where we perform "Mass delete" for records in one of the related list (Custom object called Recipient__c) from the parent object (Parent Object called ...
Rahul Allada's user avatar
0 votes
1 answer
563 views

Facing "Internal Server Error" while uploading any file(std functionality)

I am trying to upload a file on an Object(tried all standard & custom Objs) it is failing, facing this issue. Even in apex/vf pages where we have used apex:inputfile is failing the same way. Is ...
C. Praveenkumar's user avatar
0 votes
2 answers
188 views

Using datatables.net with VisualForce Pages

I read from a contributor about using https://datatables.net/ for tables in VF pages. I have the need to sort out a child related list called "Labor_Items__c". Since I am using standard ...
cpaesano's user avatar
2 votes
1 answer
143 views

VF page show last record instead of selected one

I have standard object tab and added object button to VisualForce page on it. The VF have very simple code: <apex:page standardController="Contract" recordSetVar="Contract"&...
Thimotty's user avatar
0 votes
1 answer
433 views

Resetting page while displaying success message

I am trying to reset/refresh my page on my form. I want to refresh the page and then successfully display the success message however, it is only refreshing the page. The success message fails to load....
Sarah's user avatar
  • 15
0 votes
1 answer
276 views

Salesforce Site - Access error - Authorization Required - unable to retrieve object - VF Page

I had a site setup which just hosts a single VF page. This page is an e-ticket which needs to be accessable publicly. It was working fine about a year ago until i revisted it last month and now I'm ...
James Wargent's user avatar
0 votes
2 answers
723 views

Why am I getting this error: Unknown method 'AccountStandardController.Previous()'?

<apex:page standardController="Account" extensions="AccountTitlesController"> <apex:form > <apex:pageBlock title="Títulos" id="...
Rayssa's user avatar
  • 1
0 votes
1 answer
165 views

Change StandardController into Sobject list

Original code: public Total(ApexPages.StandardController standardController){ try{ Id AccountId = standardController.getId(); ///} to public Total(List<PAX__c> paxList){ try{ ...
Amozino's user avatar
0 votes
0 answers
118 views

Updating standard object contact in Visualforce using a force.com site

I have an issue with updating contact standard object in a force.com site. I am using a standard controller for contact in a VF page. The issue is that when I pass id to the force.com site, it simply ...
Krishnamurthy's user avatar
0 votes
1 answer
1k views

Error: Method does not exist or incorrect signature: void getRecord() from the type VFAccount

I am trying to create a custom controller and extension to create account records. But I am stuck with this error I am facing. I have tried many other tips to make this work and but no avail. This is ...
Pranay Agarwal's user avatar
0 votes
2 answers
1k views

Unknown Property Error on VF Main Extension

UPDATE 12/29/2020: For clarity, and as I accepted an answer here, I am posting a new question for additional help with new issues. The new question can be reviewed here. UPDATE: I am trying to switch ...
Alexis Frisch's user avatar
0 votes
1 answer
242 views

How to display recently created record link in visualforce Email Template without using an Apex Custom Controller?

I have objects with lookup relationship "A"(Parent) and "B"(Child). Email need to be sent to User whenever a New record "B" is added on "A" and Email body ...
Rupa's user avatar
  • 15
0 votes
1 answer
360 views

Standard List Controller extension not working

I am preparing for the PD1 exam and I was practicing an example on the standard list controllers using extension. The extension class limits the opportunity to show only 2 records but it is showing ...
Krishnamurthy's user avatar
0 votes
1 answer
501 views

Getting error as " Error: Unknown property 'AccountStandardController.conList' in VisualForce page"

Visual force page code: <apex:page standardController="Account" extensions="Contactextctroller" recordSetVar="lstacc" setup="false" sidebar="false"...
abhiram reddy's user avatar
1 vote
1 answer
328 views

Visualforce - How to ensure that all records are returned by standard list controller

I have a simple visualforce page that I want to return all account records: <apex:page standardController="Account" recordSetVar="accounts"> <apex:repeat value="{!...
eaeaoo's user avatar
  • 928
0 votes
1 answer
370 views

Creating related records in visual force page matching by record Id

I am started learning standard controller in visualforce. I have two custom object: Timesheet__c & Timeentries__c.I want to display the timeentries__c details in timesheet__c matching with Id.Can ...
Jane's user avatar
  • 5
0 votes
1 answer
609 views

Upsert failed.INVALID_ID_FIELD, record id cannot be empty key: []

I'm a beginner developer and I'm building a custom NEW contract button. I'm having issues getting the contract to insert/upsert and I think it has something to do with having a standardsetcontroller ...
Justin Guay's user avatar
0 votes
1 answer
190 views

Attempt to de-reference a null object error after selecting Visualforce page dropdown value

I'm a beginner developer and I'm building a custom new contract button with a visualforce page with dropdown field values that unhide other fields depending on what is selected. Clicking the button ...
Justin Guay's user avatar
2 votes
1 answer
268 views

Is it possible to create a Visualforce page with a standardListController on Invoice?

I would like to use a visualforce page to send the ID's of selected Invoices to an external URL when a Custom button is clicked. I created a custom button that redirects to a visualforce page, so far ...
Maarten Van De Velde's user avatar
1 vote
1 answer
50 views

Visualforce page for custom object doesn't work in installed managed package

I have a VF page that works fine in a Dev org, but when installed in another org it breaks with: SObject row was retrieved via SOQL without querying the requested field: Namespace__Hub__c....
Sandeep Dinesh's user avatar
0 votes
1 answer
32 views

Error in Test class having StandardController

I am facing the below error in my test class. System.QueryException: List has no rows for assignment to SObject' I get this error on the following line in my test class: InsolvencyPopupMessage ...
Aditya Phadke's user avatar
0 votes
0 answers
118 views

VF Page Lookup InputField Lookup Error: id 1 must be 15 characters

I'am creating a custom lead conversion using Visualforce page. I'am getting this error for my lead owner lookup field. Can you help me why I'am having the value 1 in my lookup and how to fix this. TIA....
Duan's user avatar
  • 185
-1 votes
1 answer
204 views

Test class for Visualforce page with clone funcationality

I just a small help in understanding how to write a Test class for an std controller which performs a custom clone Functionality. I have 2 questions 1. Is it necessary to write the Test class for the ...
Noha Nithish's user avatar
3 votes
1 answer
209 views

salesforce Pre fill value in create page

Is it possible that pre fill value on the create page example: public PageReference Create() { Contact tmp = new Contact (); tmp.Name ='test123'; return new apexPages.StandardController(tmp)....
cheuk law's user avatar
0 votes
1 answer
2k views

Access custom object inside Visual force page set with standard controller to Contact

I am trying to add custom visualforce page in standard contact page layout. For that I have created one VF page that has standardController set to Contact in order view it in contact's page layout. &...
Hunt's user avatar
  • 245
-4 votes
2 answers
393 views

Filter Id value is not valid for the Object standard controller

Now it works :) Thank you guys! public class VFController { public VFController(ApexPages.StandardSetController setCon){} public ApexPages.StandardSetController setCon { get { ...
Apelsinova's user avatar
3 votes
1 answer
406 views

Case standard list controller won't show any records on visualforce page

I am new to Visualforce, and for the life of me I can't get a case standard list controller to show cases. It works for Accounts and Contacts, just not cases. Here is the code: <apex:page ...
EmptyStuff's user avatar
0 votes
1 answer
27 views

Parameter not returing from visualforce to controller

I am trying to pass a parameter from visualforce on pageload to controller but this is ending up empty. What am I missing? VFP <apex:page standardController="Contact" recordSetVar="record" ...
Thomas's user avatar
  • 2,310
0 votes
2 answers
1k views

How to pass dynamic object into for loop

I have a standard controller from which I get the object. How can I use this in a for loop? Apex ... public ListToStringContact(ApexPages.StandardSetController controller) { setCon = ...
Thomas's user avatar
  • 2,310
0 votes
1 answer
82 views

Creating text box with magnifier to search and select account from org

I am trying to develop a Visualforce page to search account and select from the org. Like we select an account on the contact. Need something like this on the page: Controller: public with sharing ...
वरुण's user avatar
2 votes
1 answer
370 views

How to add dynamic value to URLFOR after path

I have an apex repeat which I want to use to add an dynamic id at the end of the URLFOR but get an syntax error what is wrong with my annotation See: <apex:repeat value="{!idsContentdocument}" ...
Thomas's user avatar
  • 2,310
2 votes
1 answer
60 views

Get name of standard action overriden in Visualforce contorller

I have a visualforce page that overrides both the 'New' and 'Edit' Buttons of a custom object. In my controller extension how can I get the name of the action that called this page ? I don't see ...
MadMax's user avatar
  • 1,000
1 vote
0 answers
33 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 ...
fisker's user avatar
  • 31
1 vote
1 answer
845 views

New custom field missing in standard controller?

This should be a simple change. I am modifying code from a previous developer so if there are any suggestions they are very welcome. This is a simple button to call a VF page that will produce a pdf ...
Jerry Welliver's user avatar
1 vote
1 answer
59 views

Public VisualForce site - Create standard object

I have a visualforce page that I have linked to a public salesforce site. The page contains a form intended to allow the user to create a standard object (Campaign to be specific). My issue is that ...
user3636636's user avatar
1 vote
2 answers
798 views

Get type of record from standard controller without accessing record?

I've got a component which is used on multiple object types in their visualforce pages. I have a controller which provides some data, and another to add some relevant fields. The controller which ...
battery.cord's user avatar
  • 8,845
0 votes
2 answers
666 views

Visualforce page to create a new Opp Contact Role

Is it possible to create a custom Visualforce page for adding a new Opportunity Contact Role using standard controllers (Opportunity controller in this case)? The reason I'm asking is that I'd like to ...
Ed T.'s user avatar
  • 61
2 votes
1 answer
709 views

getParameters() returns null when passed a string that exists in the keySet()

I'm working with a standard controller on one of our organizations objects and have identified the parameter Id of a field we'd like to populate when a new record is being created. in the controller ...
Jerry Daru's user avatar
0 votes
1 answer
25 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 ...
shaik shahin2786's user avatar
0 votes
1 answer
40 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 ...
ebk's user avatar
  • 103
-5 votes
1 answer
35 views

Looking for a Test Class for code coverage [closed]

I have created an Apex Class and VF page for Popup Alert. I am looking for a test class for the same. Below is my Apex Class: public class PopUpAlert { public Contact cont; public PopUpAlert(...
tanzysfdc's user avatar
1 vote
1 answer
6k views

Standard controller and extension method with same name [duplicate]

Provided you have a Visualforce page that uses both a standard controller and an extension class. The extension class has a method with the same name as a method in the standard controller (i.e, ...
ZeeDawg's user avatar
  • 55
2 votes
2 answers
3k views

Trigger a popup alert message using checkbox

I am trying to display a pop-up alert with a message on the uncheck of checkbox. I am using Standard controller and need to implement this functionality on the Contact Page Layout. I have a custom ...
tanzysfdc's user avatar
1 vote
1 answer
800 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 ...
justinpdove's user avatar
2 votes
1 answer
856 views

Fetching related objects data from standardcontroller extension into visualforce page

public class TrackerExt { public String OpportunityId {get;set;} private final Opportunity opp; public List<Tracker__c> trackers{get; set;} public TrackerExt(ApexPages....
shukla yogesh's user avatar

1
2 3 4 5