Questions tagged [controller-extension]

A controller extension is an Apex class that extends the functionality of a standard or custom controller.

Filter by
Sorted by
Tagged with
0
votes
3answers
664 views

ReRender outputPanel via commandLink not reRendering anything when pressed

Background: I have a requirement where we need to display a VF page on the Contact object that indicates whether or not a contact has had their contact information verified within the last 14 days ...
2
votes
0answers
90 views

How to read SalesForce IdP SAML Assertion in Custom Controller

in our implementation. I need a way for my custom APEX codes and controller to be able to retrieve the SAML assertion generated from the SFDC platform (IdP). So I can pass the assertion to the ...
1
vote
1answer
21 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
495 views

How can i open a pop up box with event information when event url is clicked in the Full calendar?

I used jquery full calendar and this pageload() on document.ready with list of events in calendar. Here is my Controller: <apex:page controller="NetworkCalendar" standardStylesheets="false" ...
0
votes
1answer
8k views

Create a drop down list in VF Page

I am trying to get a drop down option on my VF page with below code: <apex:page controller="sampleCon"> <apex:form > <apex:selectList value="{!countries}" multiselect="true"...
1
vote
1answer
1k views

Get the value of drop down list that was selected earlier

In my piece of code below, I use select list tag to get user's input for a field of an object. I have a text field type for an object which I am trying to update using a VF page. <...
1
vote
1answer
533 views

Multiple Extenstion with common method name

While using a multiple extension <apex:page controller="ClassX" extensions="ClassA, ClassB"> <apex:pageBlock> <apex:pageBlockButtons> <apex:commandButton value=...
0
votes
0answers
211 views

Pass value from VF to extension

I am facing a behaviour I cannot understand. The feature works fine with custom controller, but not with standard controller extension. Essentially I have inputHidden field which value I update with ...
1
vote
1answer
3k views

How to pass parameters from a VF page to a controller extension

I'm trying to get a few inputs from the user in a VF page and passing them to the controller for processing and eventually updating the page's current record. I've been looking all around for a ...
0
votes
1answer
360 views

Replace custom object tab with a VF page/tab AND keep original SF classic looks

Right now, I have a custom object Errol__c. It has its own custom tab. I wish to make a Visualforce Page that will look exactly the same as when I press the custom object tab. That is, there should ...
0
votes
1answer
420 views

How to concatenate text field from list in visualforce extension [closed]

I am trying to concatenate a formula field for my custom object 'dependants' under the account. As it age it can be a value changed on any day so the field would need to be calculated every time it is ...
1
vote
1answer
76 views

Rerender Error, with controller extension

I am receiving an error when trying to rerender a covenant table: Unknown property 'Loan_Memo__cStandardController.covenanttable' How to I load my table based on the value of the inputField? VF: ...
7
votes
2answers
24k views

How to set record type of records while saving the records?

I have a vf page and its extensions,I am trying to save the multiple lists of a object against a particular recordtype.But i am unable to fetch the record the record type and then assign to the same ...
4
votes
3answers
139 views

Please advice is this a good design for my VFP rendered in PDF

i have a VFP that rendered in PDF format for my Quote. And due to the limitation whereby long text doesnt word-wrap in my table , i decided to loop through my long text content and put a line break ...
1
vote
1answer
857 views

Visualforce Delete Row: Missing id at index: 0

I have a visualforce page where users add and deletes records in a table. My only issue is if a user hits add row then decides to delete that row(therefore the record was never in the database) and ...
0
votes
1answer
115 views

Open record details in a panel within a Visualforce page

I have written a bootstrapped page that has a custom list view panel on the left side of the page and an output panel on the right side of the page. I have the left panel figured out where different ...
0
votes
1answer
57 views

Regarding Visualforce Page and customization

I have created the Visualforce Page ,if that page is Viewed by Particular user,their count and name should be recorded in the record of custom object,for every user count is different,is it possible ...
0
votes
2answers
451 views

VF jQuery Autocomplete: Controller List

I have a jquery autocomplete that is "working" only if I hardcode an array in javascript. Here's what's happening. Type__c is a picklist. Once I change the picklist, I call a method in my extension ...
1
vote
1answer
549 views

Quote Id returns null in extension controller

Controller : public with sharing class QLICustomerPricing{ Quote qte; public QLICustomerPricing(ApexPages.StandardController controller){ this.qte = (Quote)controller.getRecord(); ...
0
votes
2answers
1k views

How to save a VF page rendered as PDF to Notes and Attachments?

My requirement is to store a VF page rendered as Pdf to Notes and Attachments,My VF Page is being used by a custom button ,and code is as follows : Visualforce Page : <apex:page ...
0
votes
1answer
458 views

How to write test class for selectoption

I want to write test class for for below controller Controller public class OrederSendEmail { public List<SelectOption> getEmailFrom() { List<SelectOption> objNames = new List<...
2
votes
1answer
51 views

Force.com Site - Direct User to Record Without Exposing Record Id in URL

I have created a force.com site app for tracking reservations. I would like to be able to have my quests update/read their reservations after creation without using the Salesforce record Id in the url....
1
vote
0answers
47 views

Conditionally Validate fields on VF page

Here is what I need, I have 12 * 3 (36) number fields named after each Month(Jan,feb,march...etc,.) on the VF page for 3 years 2016, 2017 and 2018. Now, if my start date is Jan 2016 and end date is ...
0
votes
1answer
31 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
3k views

Lightning components, how to rerender in lightning components

I am trying to populate list of opportunities in a pagination fashion. here is the output I got But what here I didn't get is action for the next button.... Please find below the code and let me ...
0
votes
1answer
41 views

Error in Delete function inside a vf page

I have two required fields inside a Visualforce Page: prodottoservizio, quant. Inside the page I can build a list of objects shown inside a table. Now I want to insert a Delete Button that deletes all ...
0
votes
3answers
31 views

Set an inputfield inside a vf controller

I have a field on a VF page when a user insert a value in that field and click a button, that value has to be pass to a variable inside the controller extension. The input field is: <apex:...
0
votes
2answers
437 views

Retrieve all Cases related to Account object directly and indirectly on Visualforce page embeded in layout of account record

I want to show all related cases of account record in visualforce page embeded to layout. What is main issue? Standard Account object has related cases. Also Account has related Asset and Contact ...
4
votes
3answers
8k views

Build a String for Database.query

for an exstention controller of a VF page, I need to build a query to retrieve all the lead with a Company name similar to a variable. My variable name is compagnia: Now I'm trying to build the query ...
1
vote
1answer
516 views

VisualForce - Dynamically Update Contact Records based on selections made in Multi-Select style Data Table (Using Wrapper Class)

(Problem / Question listed at the bottom, below explanation content) Background: I've created a relatively simple VisualForce page with the intention of allowing our customers to update data ...
0
votes
1answer
36 views

setting up public facing visual force, but need to direct email recipients appropriately

I'm taking a whack at Visualforce, and am hoping to avoid too much Apex, but maybe this isn't possible. Basically I'd like to direct some 300 recipients of an email to pages that are relevant to their ...
1
vote
2answers
1k views

How to get field values from VF page

I'm stuck with a really easy task. My VF page have StandardController and Extension. I'm using the standard fields for Task object : <apex:InputField value="{!Task.Client_Name__c}"/> So I ...
0
votes
3answers
698 views

Value '[X]' cannot be converted from Text to core.apexpages.el.adapters.metadata.VFSObjectELAdapter

Faced with problem when saving the Task (Log a Call) record. This error shows up below field Subject on edit layout. My save Method is: Public PageReference saveRecord() { Task ts = new Task()...
0
votes
1answer
842 views

Trying to update related object fields from visualforce list

I have a visualforce page with a grid displaying an editable list of records from our Enrolment object. This list also includes a related field from the Contact, which is related to the Enrolment via ...
0
votes
1answer
467 views

(VF) How Do I pull a picklist from a related object as an input field onto a VF page that uses the Standard Controller with extensions?

Scenario: I've created a VF page that uses the Account standard controller with an extension that I created to pull contacts related to that account into a multi-selectable list using a wrapper ...
0
votes
2answers
136 views

Null object error trying to save records from VisualForce page

Opportunities set to best few or better require at least one related custom object record for objects Top 5 product Codes Created custom visual force page using opportunity standard controller and ...
0
votes
2answers
635 views

Pass value from the visualforce page to a global variable of a class

I tried to pass the input field variable value(as provided by the user) to a global variable in the controller. I have the following code. <div class="Modal"> <apex:pageBlockSectionItem ...
0
votes
4answers
1k views

Override Standard View Button and Inline Editing Disabled

I am having an issue where I need to override the standard New/Edit/View buttons on Cases with Visualforce pages.  These pages are just re-directs as I need to have 1 Case record type that is replaced ...
1
vote
2answers
231 views

Update user input value to a custom field

I have a below Visualforce page , where I am getting a user input using drop down selection. This input is for a custom field of an object which I need to update once I click save on the VF page. VF ...
2
votes
1answer
1k views

StandardSetController.getRecords() is returning unrelated records

In an VisualForce page I am using a standardController on the Quote object. I also have an extension that has a constructor that takes in a standardSetController. The standardSetController.getRecords()...
1
vote
3answers
610 views

Use controller extension attribute in Javascript

I am trying to get the id of contacts from accounts using Javascript.But seems like something is not right in the code, which has to alert the ids one by one. Here is my visualforce and extension code:...
1
vote
2answers
1k views

Content cannot be displayed: Attempt to de-reference a null object. Controller and Visualforce Issue

This basic controller below should work. I get the Content cannot be displayed: Attempt to de-reference a null object. Controller and Visualforce Issue error on the Visualforce page. Looks like my ...
0
votes
2answers
707 views

How to Reference Variables in a Controller for a Visualforce Page

I wrote a large class within my Controller and I cannot figure out how to allow the variables contained within the controller to be referenced on a Visualforce page. Why can I not just use {!data....
0
votes
1answer
243 views

How can I customize the ExceptionMessage thrown by Apex Class?

I am getting the following message on my VF page. common.apex.runtime.impl.ExecutionException: Unable to Parse Date Value I wish to suppress the first part of the message which is common.apex....
0
votes
1answer
513 views

testing a radio button selection functionality

I am testing an updatecase method in my class which look like this: public PageReference createCase() { Case c = new Case(Status = 'New', Origin = 'Phone', Subject = 'This is a New Case Created',...
0
votes
1answer
1k views

Test pagereference redirection to detail page

I am writing a test for a method in CreateNewCase class. This method in CreateNewCase class creates a new case and redirects the page to the new case's detail page.: public PageReference createCase()...
-1
votes
1answer
507 views

Test class for a pagereference method

I am trying to test a logic in my extension. I have three boolean variable(I am setting them as false in constructor). In my method displayButton() , if all three boolean value are true then I set a ...
-1
votes
1answer
33 views

Testing the Extension for a Visualforce page

I am just curious about the following code, not able to achieve 100 % code coverage. Following is the extension and its test class. public class RW_EnquiryFormExtension { public String projects { ...
2
votes
0answers
57 views

get data from another class to vf page [closed]

I have a class which is using object of another class and I want to use it in my vf page .`This is my Vf page and I want to access my CalculatorView class data in my vf page. `` public with sharing ...
3
votes
1answer
1k views

How to Override (Related List) New Button?

I am attempting to override the "new" button that I see on the Opportunity List page with a Visual Force page. I intend to use the same page and same controller for the New and Edit buttons. The Edit ...

1 2 3
4
5
9