The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
18 views

Test class coverage and failed assertions

I have written a VF page where knowledge articles are displayed as a PDF. Now for constructing URL i took help of custom controller and hence i had to write a class for it as well. The problem i'm ...
0
votes
1answer
17 views

TrailHead - Creating and Using Customer Controllers “bounding”

Here is the criteria for the question: •The page must be named 'NewCaseList'. •The custom controller Apex class must be named 'NewCaseListController'. •The 'NewCaseListController' Apex class must ...
1
vote
1answer
37 views

Create Visualforce Page with dependent multi-select picklist

I am new to Salesforce and trying to make a new VF page. I have three custom objects: Students (list of students) Course Details (course time, start date, room, etc.) Student Course Detail Junction ...
-1
votes
0answers
15 views

Already exist record give through error [closed]

I have already exist field text value(record). Again i give same record through error in visual force with controller.
0
votes
0answers
20 views

Salesforce Controller Test: getAccounts method not filtering by profile

I have a custom controller that is intended to return a results set to a visualforce page for customized viewing. It works fine in production. When building my unit test for this controller, ...
0
votes
2answers
33 views

How overriding works in standard/custom controllers?

1) If I have a standard controller and two extensions Ext1 and Ext2 and if both Ext1 and Ext2 have the save method, then whose save method will be called Standard controller's, Ext1's or Ext2's? ...
0
votes
1answer
36 views

CommandButton to Increase/Decrease Probability ln Visualforce

I have a Visualforce page that has a list of opportunities with their probabilities. I want to use commandbuttons to allow the user to increase or decrease the probability by 10% right in the list ...
2
votes
1answer
47 views

Visualforce component on page - not rerendering after onclick event

I'm attempting to rerender an apex:outputPanel containing a visualforce component. When I click the panel containing the onclick code to call the controller method to change values and rerender, ...
1
vote
0answers
56 views

Custom Collapse/expand functionality in visualforce page [closed]

Can any one help me how to implement custom collapse/expand functionalities in visualforce page.(Using vf components, html,javascript) I have requirement to implement the above functionalities same ...
1
vote
3answers
138 views

Passing URL parameters from VF page to custom controller

How can I take a URL parameter and pass it to a custom controller method? For example, I have a button from a case that goes to VF page with its ID in the url. (ex - ...
1
vote
1answer
16 views

How to generate Helper class runtime

Is there a possibility or did anyone tried to generate an Apex helper class based off certain conditions runtime. I am thinking this just for LEARNING prospective. This will also reduce the number of ...
1
vote
1answer
68 views

Illegal assignment from Schema.SObjectField - apex code [duplicate]

Do I have to load that in List only ? I'm coming from .Net background and still learning how does the SF works... PS: Schedule__c is a custom object and trying to access the field from. Error: ...
0
votes
0answers
25 views

Custom Controller for Dashboard Use

I have a page which shows tables of Users' activities (below is truncated view of it. B/c it uses a standard controller it can't be displayed as a Dashboard. How would one go about getting around this ...
3
votes
1answer
31 views

Duplicate Value Found: <unknown> Duplicates Value on Record With Id: <unknown>

I am getting this problem while saving the following controller class class public class NewAndExistingController { public Account account { get; private set; } public ...
2
votes
3answers
76 views

Apex:CommandButton sending data to controller

I'm trying to create a visual force page with a table and a "request" button that will take the selected row and append it as a task. Here's a photo of the table: When a user hits request, I want ...
8
votes
4answers
1k 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
137 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
35 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
43 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
28 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
23 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
130 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
91 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
145 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
77 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
72 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
52 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
2answers
321 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
291 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
202 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
232 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
35 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" ...
3
votes
0answers
131 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
3answers
600 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
131 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 ...
3
votes
3answers
5k 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
35 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
4k 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
3k 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
647 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
425 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
263 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
63 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
1k 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
163 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
4k 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
463 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
34 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
1k 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
3k 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 ...