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 [custom-controller]

A custom controller is an Apex class that uses the default, no-argument constructor for the outer, top-level class. You cannot create a custom controller constructor that includes parameters.

0
votes
0answers
13 views

Mailing Address Suggestions not showing in Lightning Component

I have a lightning component which is used in the community. When I have added mailing address field in the code, I can able to see the field but suggestions are not coming as we see in lightning ...
0
votes
0answers
8 views

How to use Outputlink to display Contacts next to Accounts

I created a visualforce page to display the contacts of an account in a div next to a pageBlockTable when the account is selected it will display it's contacts linked to it. This is the VisualForce ...
0
votes
1answer
19 views

How to make the target of an output link be displayed next to the pageblocktable?

So I'm having an issue trying to display the contacts of accounts next to the pageblocktable. The functionality I want to occur is that once an account is clicked to display the contacts for that ...
1
vote
2answers
116 views

Variable is not visible

I have this variable which returns key from custom settings. below is the code related to this private static String AccLinks { get { if (Acclinks == null) { ...
0
votes
0answers
17 views

Save selected data by checkbox from vf page to object

if a check box is selected in vf page selected attachment should get save in an object.i need a controller logic. here is my code : <apex:...
0
votes
1answer
27 views

VF page to display custom related list

I have two custom objects: 'MRC Cases' (parent) and 'MRC Case Notes' (child). On the MRC Cases Lightning Record Page I want to display all of the case notes associated with the MRC Case, with the full ...
-1
votes
2answers
28 views

Issue with Action support inside a selectlist

I am working creating a vf page, that has a selectlist showing list of Sobjects. Once anyone sobject is selected it has to display the fields in another selectlist. I tried but I am unable to get the ...
0
votes
1answer
26 views

Working on Search Criteria and limit the number of filters displayed on Search Criteria section

I am working on a Search Function using custom controller. I have 4 Filters (Account Name, Country, Account Type, Contact Name) in my Search Criteria Section. I have a requirements that, it must have ...
0
votes
0answers
48 views

Apex heap size too large: 6125236

I have a visualforce page which is throwing me the error "Apex heap size too large: 6125236" I have referred to couple of similar issues here on stackexchange but this seems to be a different issue. ...
0
votes
1answer
28 views

Display save success message only when the record is saved on VF page

I've a VF page to create cases. It has lot of workflows and VRs associated with it. While saving a record, if there's a VR error, the message shows at the top of page, however, I'm also able to see ...
-1
votes
1answer
31 views

I am facing the error parameter Id is missing,while conga composer from VF page button click

when i select the records in vf page ,after click on the VF Button the conga should be call along with id for generating the PDF but on button click the window is opening but showing error that "ID ...
0
votes
1answer
34 views

Conditional formatting of the Style attribute on apex:outputText in a custom visualforce page

Looking to get some feedback on a problem and have 3 possible solutions which I am struggling to get working. The functionally I am trying to achieve is in an apex:outputText element I want an ...
0
votes
1answer
58 views

How to pass list view selected items from one visualforce page to another

So I have a custom object called Transactions, and have recently made a list view button that will redirect the user to a visualforce page that will show the selected record, and provide a few buttons ...
0
votes
0answers
25 views

Not full URL in Referer header in a controller of a Visualforce page

I added a custom VF page in a Dashboard. I want to have the Id of the Dashboard in my controller because I need it in my script. So, I used ApexPages.currentPage().getHeaders().get('Referer'). In ...
0
votes
1answer
44 views

Custom Controller and VF Pages for a Kanban

Looking to get a little help with a custom controller and VF page for a Kanban we will use on our home screen. I have used the code from https://shrutisridharan.wordpress.com/2016/08/22/creating-a-...
0
votes
2answers
31 views

Unable to get Visualforce page form input values in Custom Controller

Controller: public class updateOpp{ public String Name {get;set;} public Boolean selectRecordDel {get;set;} public PageReference submit() { system.debug(Name); system....
0
votes
1answer
21 views

while calling method showing variable undefine in lightning component

This page has an error. You might just need to refresh it. Action failed: c:SComponent$controller$arResult [str is not defined] Failing descriptor: {c:SComponent$controller$arResult} when click ...
0
votes
1answer
74 views

Unknown property 'String.Id'

I am trying to update a VF page and add a new field but am getting an error Unknown property 'String.Id' The field that I am trying to add is Descriptio__c, a depending picklist to Task_Type__c. ...
1
vote
1answer
91 views

Visualforce Input Fields not being passed to Controller

We're running into an issue where values being entered into a Visualforce page are not being passed at all to the controller for the save actions that take place. I'm sure this is something simple ...
0
votes
1answer
28 views

Getting values from picklists into visualforce controller

I'm creating a VF page on Opportunity Products where I have an apex:repeat and inside the repeat, I have a picklist that gets it's values from a SOQL query on a related object. I have no problem ...
0
votes
2answers
100 views

Visualforce Render condition not working when true

I have a custom visualforce page that has page blocks. When the render condition is false, I receive the expected results when previewing. The issue is when I change the render criteria to true and ...
-1
votes
1answer
43 views

How to Calculate a Percent in an AggregateResult Method

I am using a custom controller for a Visualforce page on a custom object (Quote__c). I have an AggregateResult method that sums 3 amount fields to show grand totals on my VF page. I would like to add ...
0
votes
1answer
50 views

AggregateResult Grand Total on VF Page

I have a custom VF controller that uses the AggregateResult method to summarize some fields by year. All that works as expected, but now I want to also pull the total for each metric field for all ...
0
votes
0answers
14 views

Visualforce Page Not Available for Custom Button [duplicate]

I am trying to create a custom List button that will sit on the related list of my Quote__c object at the Opportunity level. I created a VF page and custom controller, but when I create the list ...
0
votes
1answer
37 views

Custom Save button in Apex Controller not working

I have attempted to build a custom Save method for a visualforce page I created, but when I click Save, the page reloads with nothing happening. What have I done wrong? :/ Here is my controller code: ...
0
votes
0answers
66 views

Pass value from one VF component controller to another VF component controller within same VF page without side-effects

I wonder how to pass value from one VF component to another VF component within same VF page. I think that Passing VF Page controller to component and set it as parentController in component Apex ...
0
votes
1answer
45 views

Group products by family [duplicate]

Updated I've updated the question because it was not clear and some of you gave me hints.What i originally want to achieve is the following example on visualforce page I want them to be grouped and ...
1
vote
2answers
117 views

Visualforce page can't find my method?

Firstly, let me apologize in advance for my extreme naivete' in this matter. I'm quite new to VF and could not find documentation to cover what should be an incredibly simply issue. I have a quick ...
0
votes
0answers
33 views

Null Value for record after getting id from a map of ids and accounts

The system.debug shows that the id for TempAcct is associated with the correct id after a.get('Franchise__c'), but NewAcct = null. The debug shows that the id was mapped correctly to filterIds, and it'...
0
votes
1answer
38 views

Javascript Filter In Custom Controller Not Returning Filtered Results to Visualforce Page

I have a custom controller and page with a few lines of Javascript. The functionality should work as follows: when a user enters a state or account name in the parameters, the list of accounts and ...
0
votes
1answer
41 views

Filter for Aggregated List Results in Custom Controller

I have a custom controller with a Visualforce page that displays a list of accounts with aggregated results for each account. I want to create a filter for state and inspection date that would filter ...
0
votes
0answers
17 views

List not showing when using same controller for two visualforce pages

I am working on a lookup like functionality where you insert some text in input text box and after clicking search button a popup page is opened which shows list of accounts starting with name entered ...
1
vote
2answers
43 views

IF clause in VF page to render PDF

Below is my VF code, I need to render my PDF only if status__C = approved. How to achieve it. I'm new to development <apex:page controller="MyController" renderAs="pdf" applyBodyTag="false"> &...
2
votes
1answer
254 views

format .cls file in Visual Studio Code

What extension can be used in Visual Studio Code to format .cls files?
0
votes
1answer
63 views

how to display my field values in VF PDF from controller class for a custom object

my VF code <apex:page controller="MyController" renderAs="pdf" applyBodyTag="false"> <head> <style> body { font-family: 'Arial Unicode MS'; } @page{ size: letter; margin:10%...
1
vote
1answer
23 views

Is it possible to grab buttons on record page from Apex to parse button URL merge fields?

We are letting users select certain buttons that contain a URL in our application. That button now accepts merge fields. Handling '{!Object.field}' and '{!$User.field}' and '{!Today()}', and '{!Now()}'...
0
votes
2answers
43 views

Custom controller won't work in component?

I have a custom controller that i know functions as i want it to. I say this because i can use {!var} on a visual force page and i get that value i want. However when i do the same thing in a ...
2
votes
0answers
70 views

Basic Lightning component audio player [duplicate]

I'm trying to get a hold of the Saleforce stack and so far i have created a custom controller and have access to the data i need on a visual force page. However i'm not sure how to translate this to a ...
0
votes
1answer
61 views

Record changed data is not sending from VF page to controller in case JQuery Pagination

VF page displays the records using page block table. I'm updating the records from VF page by clicking on "Save" Button. I've used standard Jquery pagination to implement the pagination. When I am ...
0
votes
0answers
30 views

Can´t see fields to edit in apex:inputFields

I have problem with writing values to custom object in VF controller whitch i include to apex:page. I can´t see box to write values in my apex:form. I have apex:inputfield, but i can only see it´s ...
0
votes
1answer
24 views

Duplicate Management Soql not finding a duplicate that displays on contact's related list

We just activated Salesforce's native duplicate management on an existing org. The users are still in classic, so in order to make it really noticeable that there is a duplicate, I'm creating a vf ...
1
vote
1answer
186 views

How to insert/create a record in custom object using custom controller

While saving the vf page I am getting this error:Invalid character in identifier: getUsers__c.How to resolve this? VF page: <apex:page controller="createUsers"> <apex:sectionHeader title="...
0
votes
1answer
43 views

Unable to update existing lead from force.com site [duplicate]

I have a requirement where I need to update an existing Contact in Salesforce from a Visualforce page on display of a Force.com site. How can this be achieved, since there is no update permission on ...
2
votes
2answers
281 views

How to repeatedly poll a server-side controller for an action in a Lightning Component?

There's a Lightning Component with a button. Its onClick attribute points to a client-side controller's function. It invokes helper's function which I would like to start a polling routine to a server-...
2
votes
1answer
73 views

apex - remove item from dynamic list

The regular Salesforce community sent me here to ask these questions. I'm pretty new to apex and controllers so I'm not sure if I Googled it correctly so please be gentle if this is a super obvious ...
0
votes
1answer
46 views

Visualforce page not returning values

I have created a visualforce page and custom controller. I am trying to create a list of opportunities on Account where the opportunities are related to the contacts linked to that account however the ...
3
votes
1answer
72 views

Where can I find a documentation of Lightning server-side controller's response?

Having a lightning controller's code: var action = cmp.get("myAction"); action.setCallback(this, function(response) { // Callback code's here }); $A.enqueueAction(action); I call for a server-...
0
votes
1answer
14 views

Visualforce page “clobbered” by Visualforce email template

So I've run into a bit of a crazy issue that may or may not qualify as a bug. But it's really weird. I haven't had the time to put together a minimal example but I will describe it here, anonymized. ...
0
votes
1answer
84 views

Records Wrongly Deleted By Javascript Remoting

Below is the code snippet of the VF Page: <apex:page controller="UploadPageController"> <html> <head> <script type="text/javascript"> if (window.File && window....
1
vote
2answers
452 views

Add onClick javascript “custom button” in visualforce page [closed]

I have a custom button created in the object called Account and this button execute javascript, content source is onclick javascript: Name of the button is Viewdetails and "ViewPage" here is a VF page....