The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
31 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
122 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
48 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
106 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
50 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
28 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
124 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
49 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 ...
0
votes
3answers
371 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
248 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
20 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
168 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
261 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
109 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
79 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
237 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
12 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
122 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
254 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
811 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
193 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
200 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
46 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
228 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
388 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
774 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
238 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
636 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
74 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
338 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
359 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
2k 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
265 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
838 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 ...