The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
1answer
19 views

Proposal Type Controller Test Class [closed]

I'm new in creating test classes. Kindly help me on this one Thanks in advance. public class SelectProposalContr { public String selectType { get; set; } public String opptyId { get; set; } ...
8
votes
4answers
287 views

Apex Controllers: What do the get; set; do?

I've built a few apex controllers, and like most people have copied some code from here and there. In the controllers, there's typically an expression that looks like the following: public *var type* ...
1
vote
2answers
35 views

Re-rendering content within Custom Component from Visualforce Page

Is it possible to re-render the content within a Custom Component from the parent Visualforce Page? I have a custom component in an apex:outputpanel like so: <apex:outputPanel id="popup"> ...
0
votes
0answers
16 views

Limit Picklist Values Displayed on Custom Controller to specific record type

I need to limit the picklist values that are available in a visual force page (custom controller) to a known record type as opposed to providing a list of all picklist fields. Is there an easy way to ...
1
vote
0answers
21 views

Leverage StandardSetController pagination in Edit grid

There are numerous examples out there how to use StandardSetController to display Table grids for many SObject records. It's internal pagination mechanism is very helpful to e.g. reduce Viewstate on a ...
0
votes
0answers
20 views

Can rendering of a big Pageblocktable lead to CPU timeout errors?

In my page after clicking a custom save button I am rerendering a huge apex:pageBlockTable with 150+ rows, 20 columns. <apex:repeat value="{!fields}" var="field"> ...
0
votes
0answers
12 views

What is an Ancestor Method?

I have a leadConvertController that is tied to several components and other controllers. One line keeps giving me a Method does not override an ancestor method. I don't even know where to start to fix ...
2
votes
2answers
46 views

Not able to save using simple custom controller

I'm learning custom controllers and facing difficulty in simple save action in Account page. What I'm doing because of changes made to account are not getting saved ? This is my simple VF page ...
0
votes
1answer
69 views

Visualforce Error :Attempt to de-reference a null object

Can any one help me out with this Error .I'm getting Visual force Error :Attempt to de-reference a null object . To identify the same product name in a table in a visual force page which is in a ...
0
votes
0answers
84 views

Visualforce radio button update fields

Hello I'm trying to build an auto fill ZIP code VF page for the Object Account. I ended up being stucked at this point, since I know what I want to do but since my knowledge about VF is really ...
0
votes
1answer
56 views

Test to Cover Custom Controller

I'm having trouble getting adequate test coverage for a custom VF controller I created. My test and controller are below. When I run the test, I am getting no coverage for lines 13, 16-17, and ...
-1
votes
1answer
47 views

Assign Value to record from button click

I have two buttons: <apex:form > <apex:commandButton styleclass="btn-lg btn-data" value="Vote Up" action="saveUP"/> <apex:commandButton styleclass="btn-lg btn-data" value="Vote Down" ...
0
votes
0answers
35 views

split method occuring once

I have below class snippet where split method is parsing data only once. It should be doing for all data. csvfilelines.size() shows 5 but records displayed from the sObjectList is only show one. ...
0
votes
1answer
156 views

How to Embed Custom Object Page Layout into Visual Force page?

I have a One custom object(Used for searching purpose) and i want to add that particular object's all the fields into the visual force page what is the best way to do this ? I need Field ...
7
votes
1answer
188 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
90 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
130 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
20 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
70 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
224 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
103 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
3k 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 ...
2
votes
0answers
26 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
2k 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
2k 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
324 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
308 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
185 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
46 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
828 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
118 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 ...
2
votes
3answers
3k 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
376 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 ...
1
vote
1answer
28 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
947 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 ...
1
vote
2answers
2k 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
399 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
176 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
643 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
17 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
146 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
540 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
291 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
412 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
63 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
337 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
502 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
1k 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
350 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> ...