The tag has no wiki summary.

learn more… | top users | synonyms

6
votes
1answer
64 views

Best practices for custom controller actions

Many times I've came across the following issue: should I use one custom controller for all the actions for some sObject or some area, or maybe there should be separate controllers for editing, ...
0
votes
0answers
10 views

Autopopulate fields on custom object from opportunity

We have a custom object which has a field called Proposal_Number__c , which us also a custom field in opportunity. So when user enter values in Proposal# we want to auto populate other fields in ...
1
vote
0answers
23 views

field validation on approve or reject for approval process

I am creating an Approval Process. Its a simple process with 2 approval steps I have a requirement where an assigned approver (user) must populate one or more fields on a record before they approve or ...
0
votes
0answers
13 views

Unknown property 'StoreFrontController.productDisplay.Condition'

here is the following custom controller and VF page code but i am getting error of Unknown property 'StoreFrontController.productDisplay.Condition' <apex:page controller="StoreFrontController" ...
2
votes
0answers
16 views

Is it still impossible to start a Flow Interview for a VisualForce Controller's Unit Tests?

Currently looking at An Advanced Example of Using Been writing some unit tests for the VisualForce controllers I've been creating, which, with my original code would result in "Interview not ...
0
votes
2answers
38 views

Apex class that inserts a new account named after an incoming parameter

The Apex class must be called 'AccountHandler' and be in the public scope. The Apex class must have a public static method called 'insertNewAccount'. The 'insertNewAccount' method must accept an ...
0
votes
1answer
33 views

Why can't I load the VisualForce Chart data for a different year through Javascript?

Currently looking at Refreshing Chart Data Using JavaScript Remoting After changing hidden="true" to hidden="false", the pie chart displays when the page initially loads, however when I change the ...
1
vote
3answers
577 views

System.QueryException: List has no rows for assignment to SObject

I have this controller but I am getting this error System.QueryException: List has no rows for assignment to SObject public class MyController { private final Account account; public ...
1
vote
0answers
9 views

Execution order with apex:composition

While using apex:composition in Visualforce page and refering to a template page with a different controller compared to page on which template is defined. Does this follow same execution order ...
0
votes
2answers
200 views

VF controller redirect to another page

I have a Apex Controller for a VF page. I want to redirect my page to another one, only if I cannot get a specific parameter from the URL. current page: /apex/demo?param=123 -> stay on this page. ...
0
votes
1answer
689 views

visualforce Page reference custom controller test class

I have visualforce page that using custom controller. page have section to save record to my custom object. <!-- ...
3
votes
1answer
116 views

custom controller with extension

What are some use cases in having a custom controller with extensions? Does it make sense to have something like this? EDIT2 Edited out the error I was receiving - apparently in my extension I was ...
1
vote
1answer
199 views

Unknown constructor for visualforce controller

I'm trying to make my Visualforce controller work correctly. Bear with me that i'm also using a wrapper class in the controller, and it's my first time doing that an I've been getting lots of ...
1
vote
1answer
90 views

Visualforce Pie Chart to Display Record Count

Trying to make a VF PieChart that displays a count of records "sold" by user over the last hour. I'm having trouble passing the correct values to display the Pie Chart. Below is the code for my ...
0
votes
0answers
31 views

Setting a List in custom controller from Visualforce Page

What I want to do is send Httprequest from my page which is provided by User and show the response to user, for that user can choose get method or post method . If user chooses get method then user ...
0
votes
2answers
340 views

Test Class for a VF Page Controller w/ Void Method [closed]

Trying to write a test class for below method. Essentially this method will fire "onchange" on the VF page to rerender a new query and new picklist. public void calculateAwards(){ awards = new ...
0
votes
1answer
81 views

Action attribute works on page tag, not on commandbutton tag

I am very new to salesforce, apex, and visualforce. I created a developer account and began creating custom pages and apex classes. I am trying to create a method inside a custom controller class ...
1
vote
3answers
1k views

Get Current Record ID in URL field like ApexPage.currentPage().getParameter().get('id')

I have object XYZ__c where I have created one button-URL with formula {!URLFOR("/apex/myVFPage?id="+**HERE I WANT TO PASS ID FROM CURRENT PAGE**)} which we usually do using ...
1
vote
0answers
297 views

Save using Jquery UI modal popup

I have a Jquery UI modal popup that is basically an iframe with a VF page within. The VF page requires the user to enter some data and either click SAVE or CANCEL. The problem is that if I use ...
0
votes
1answer
22 views

Constructor not invoked for Custom Controller. Any suggestions of what is wrong?

I have built a custom controller and the constructor does not automatically invoked when the page is executed. What could be wrong in this? Am i missing something? The System.debug('Inside ...
1
vote
1answer
443 views

Need help for custom controller test class

i implemented chatter check in for this blog: http://intmist.wordpress.com/2014/03/23/show-custom-visualforce-page-in-salesforce1-setup-publisher-action-and-check-in-using-salesforce1-app/ do some ...
0
votes
2answers
548 views

Creating Visualforce pageBlockTable with Custom Object / Table not Appearing

I'm having an issue where my visual force page is not showing any data. The SOQL query tool clearly shows data entered in the database, but the visual force table is not populated. Here is my ...
0
votes
1answer
215 views

actionfunction is returning null parameter value

i created a visualforce page in which actionfunction definition is <apex:actionFunction name="setAttachment" action="{!setAttachment}" > <apex:param name="attachmentBody" value=""/> ...
0
votes
1answer
111 views

Basic VF Controller test fail: NullPointerException

I have a Sites page(1) that takes either 1 or 2 parameters that directs the user to one of two pages based on a query using the first parameter. If the query returns a record with one value, a ...
1
vote
1answer
391 views

Opportunity Record Type Selection Page

I'm trying to create a visualforce page which clones the record type selection page when creating new Opportunities. I'd like the page to display opp record types based on the related account record ...
0
votes
0answers
13 views

Sites page controller untouched on repeat load; trying to prevent duplicate submission

I have created a Sites page form to accept unauthenticated input/submissions that are then associated to existing records. We provide a link to the form with an identifying parameter, which, when ...
4
votes
1answer
132 views

Unknown property

Why am I getting the following error? Unknown property Controller Extension public class CrewWorkDetailController{ public final Installation__c installation ; public ...
1
vote
1answer
378 views

how to get Field dependency in visualforce page

This is My visualforce page and Controller to get Field Dependency, Here I am Getting All the Values but Dependency is Not Working Visualforce page: <apex:pageBlockSectionItem > ...
0
votes
1answer
1k views

Uploading files with visualforce page and attached it the record row

I have a visualeforce page with a pageblocktable, and a link 'Add row' to add row, but how can I save this row as a record in my object! and attach a file to each column, for example 'Food Expenses' I ...
0
votes
1answer
261 views

VF ControllerExtension: Too many query rows: 50001 - How to solve

visualforce Extension: public class Autocompletefields_custom1 { public Autocompletefields_custom1(customreport controller) { } //Variable declaration transient public String[] ...
0
votes
1answer
283 views

ListException: List index out of bounds: 0 for Custom Employee User account

When i create new User Account and login with that credentials, it gives me this problem if admin doesnt have set thier values yet !!!** AllotmentList = [select id, Days_Remaining__c from ...
2
votes
1answer
56 views

Developing Sites page to create new custom object records; save() failing on Insufficient Privileges

I have a custom object that I want to create records for from a VF page on Sites. I am presenting a handful of input fields and a "save" button, and want to present a message when the save is ...
6
votes
2answers
289 views

Why is my visualforce wizard displaying nothing after changing page?

Building a wizard to mirror the functionality of the opportunity products wizard built in (minus an otherwise unmovable field). The first page, where the user can select from a list of products works ...
3
votes
1answer
437 views

How to create a Show/Hide Button on Contact Related List in Salesforce

-Background- Our contact related lists on the account page layout displays records with one of the following two statuses: "Active" and "Terminated". Users are being overwhelmed with the number of ...
0
votes
1answer
902 views

Testing Wrapper Class: Constructor not defined: [ClassName].<Constructor>()

I am trying to test this (uploaded to pastebin due length) wrapper class. I was trying to follow two previous SFSE's, however I am getting errors. See code below (errors in comments): @isTest public ...
1
vote
1answer
278 views

how to write custom controller for this scenario?

<apex:page standardController="account" extension="letter"> <apex:panelgroup rendered="{!account.contact.title=='CEO'}"> <b>- CEO: CEO</b> ...
5
votes
1answer
728 views

Unable to access controller class properties from extension class

I am creating a new opportunity wizard to ensure that specific data is always entered when our sales reps create a new opportunity. As part of this effort, I've also over-written the lookup window for ...
3
votes
1answer
83 views

How can I expose part of a page in response to a button click

I want a simple way in Visualforce to expose part of the page in response to a button click. This should be easy, but it is giving me more trouble than anything I've done with VF to date. After ...
1
vote
1answer
363 views

Query regarding trigger?

I am having following requirement: To get list of all the users for whom profile has been changed. Then query on FRUP (It is a custom object) to retrieve all the records which are associated with ...
5
votes
1answer
386 views

string list in custom controller not populating

I have an apex code for a visualforce page but I'm having a bit of an issue returning values from the account object which is one of the master objects in my junction object. The code below shows the ...
2
votes
2answers
1k views

Visualforce Page Form Submission not going to Custom Controller Method, Just reloading page

I have a custom controller that has been working for years (literally), and for tens of pages. Basically, the page displays a form with a number of lead fields, and when the user clicks a command ...
4
votes
1answer
4k views

Solve: System.ListException: List index out of bounds: 0

i'm getting the following exception from my code: caused by: System.ListException: List index out of bounds: 0 Class.tempsection4.getconvalues: line 38, column 1 My controller for the VF page is: ...
1
vote
1answer
3k views

VisualForce page with custom controller and lookup causing JavaScript UI issues

I noticed that I'm experiencing UI issues with every Salesforce instance that I have access to when I create a custom VisualForce page using a custom controller and that I display a lookup field on ...
3
votes
1answer
278 views

Visualforce w/ Custom Controller Not Behaving as Expected

I am trying to create a VisualForce page, with a custom controller, that displays the feed items from the chatter feed of the record provided by the user. The goal is to have the page start with ...
1
vote
1answer
914 views

Using a VF inputfield as a variable in a custom controller

I am in the process of learning APEX/VisualForce, and I'm working on a VF page that lists out all of the chatter posts from a specific record. Right now, the record that it displays the feed for is ...