Content relating to Visualforce Controller Extension Classes

learn more… | top users | synonyms

1
vote
0answers
8 views

How can I clear all data from data extension using Java fuel sdk API

PerformRequestMsg performRequestMsg = new PerformRequestMsg(); performRequestMsg.setAction("ClearData"); PerformRequestMsg.Definitions definitions = new PerformRequestMsg.Definitions(); ...
0
votes
2answers
34 views

How to add new fields to a VF page when they are not included in the custom controller used for the page

I have a custom controller and VF page which allow my users to create and save a contract by using several information fields on the opportunity and related account page. Since this was first created, ...
0
votes
0answers
23 views

Issue with binding variables when two visualforce pages sharing same controller

I have two pages that share the same controller. A button on the first page renders the second page as a PDF and attaches it to the Case. When viewing the attachments on the case, there are no values ...
1
vote
1answer
71 views

On click of save record button i need to download opportunitylineitems details as pdf

I have written one VF page,1 extensions on opportunity detail page with show products button.Once i click show products,it will show all products present in that current opportunity.List of products ...
0
votes
1answer
22 views

Not getting opportunity against the current account

I am trying to create a Vf page on click of a custom button "Show opportunities" on account detail page.Currently when i preview my Vf page it shows only two button "Proceed with Selected" & ...
1
vote
1answer
24 views

Help with a custom extension test class

I'm pretty new to VisualForce and Apex but I know a little bit of Java so I've been able to figure out how to set up a pretty simple page to create an account and two contacts. I found some useful ...
0
votes
1answer
55 views

Using Input Field to occupy Output Field through Extensions Class

M a SF rookie and i need the output fields ie Amount,Price and Quantity to be displayed when their respective Product is selected.All are fields of an Sobject known as Sales_Order_Line_Item__c.The ...
2
votes
2answers
512 views

URL Encoding in Apex - PageReference to Merge Accounts

Following to my previous question - Merge Accounts based on Account Number. I have written a Visualforce page with a selectable table list of Accounts. When selecting the accounts and pressing the ...
1
vote
1answer
97 views

Reuse / share functionality between base and extension managed packages

I have a managed base package that contains Visualforce components and pages that I would like to reuse in its extension package. I don't want to make them global as this would allow customers to ...
1
vote
0answers
72 views

Dev on extension package against unmanaged version of base package

We are currently developing both an extension and base package. Currently, due to namespaces, we are forced to develop the extension package against a managed base package. When we have to change the ...
2
votes
0answers
363 views

Pass VF component attribute to component extension

Following is my code: VF PAGE: <apex:page standardController="account" extensions="ForecastHierarchyEditExtension" tabStyle="Account" sidebar="false" standardStylesheets="false"> ...
2
votes
1answer
738 views

StandardController of Account to show a pageblocktable of related child object from an extension errors out

I have a object Competitor_Mapping__c that has lookup with Account. In the page, i have used standard controller of Account to fetch the current Account id from URL, used in a SOQL to populate a list ...
1
vote
1answer
259 views

Update picklist value after commandButton onclick event

I have two buttons on my visualforce page: <apex:form > <apex:commandButton styleclass="btn-lg btn-data" value="Value 1" onclick="setValue1()"/> <apex:commandButton ...
1
vote
1answer
316 views

When I change a VisualForce page ContentType, can I somehow give it a file extension?

Currently reading about Using Custom ContentType. I see that, instead of serving an HTML page, I can instead serve some other media types, such as Excel or RTF. However, when I create the page, I ...
1
vote
0answers
128 views

ExactTarget - How to post a record to a data extension that has no primary key?

I have a data extension with the following fields: recordId - number recordKey - text - length: 50 recordValue - text - length: 50 None of the above fields are primary key, because they can occur ...
1
vote
2answers
187 views

custom extension has without sharing annotation but still runs in user mode

I have created a custom controller that extends a standard controller. My custom extension is defined 'without sharing'. Nevertheless, it seems to execute 'with sharing'. I get the feeling that an ...
1
vote
2answers
168 views

URL redirect after attachement upload

I want to make a program where a user uploads any document. On uploading I want the user to be redirected to a folder. So here's what I have tried so far from salesforce documentations... public ...
0
votes
1answer
339 views

Get a value just edited from controller to Visualforce page

I'm building a Visualforce page that let's the user upload some images, they can add as many images as they want, when they click on the "add new" button, a new record is inserted and one of the ...
0
votes
2answers
585 views

Placing a personalized string from a data extension field in an email

I have a link with a personalized string like below. http://example.com?email=%%emailaddr%% If i place this in an email than the personalized string %%emailaddr%% will resolve to the email address ...
1
vote
1answer
12k views

Getting a value from controller extension to Visualforce page

I've been wondering about this alot. I have a VF page that has a StandardController for Contact and a custom extension that handles an external webservice call. This extension class contains a ...
3
votes
1answer
249 views

Extend/Overwrite trigger behaviour in Extension Package?

We have a core app (managed base application) and want to extend it with add-on products. We plan to use managed extension packages for this. It is crucial that we can extend and/or overwrite ...
4
votes
1answer
40 views

Can't find reason why my managed package started to extend/require other packages

When a user upgraded to the latest version of my managed package his installation failed as he required another package. Yes this package is indeed installed in my packaging org but not referenced ...
3
votes
1answer
734 views

How can I get the field type of an inputfield displayed within a repeat tag?

Background I have a Map of sObjects and a List of API field names (from Custom Settings) to dynamically control the fields that display in a table on a Visualforce page. Here's the Apex to get all ...
4
votes
1answer
449 views

Can there be a Shared Extension across Multiple Overridden Visualforce Pages?

I would like to know if its possible to share a common extension class across multiple Visualforce Pages which use different standard Controllers. For Eg., I've VF_A Page which overrides default ...
2
votes
1answer
1k views

Extension Constructors

In this canonical example for constructors, can someone walk me through a couple of questions? why is the acct private and final? how are you supposed to use the acct object? what's going on in the ...
3
votes
1answer
425 views

Render a tab for certain public groups

I have a custom page that overrides the default account page, dividing it into multiple tabs. I was wondering if there was a way to use the "rendered="{!IF($.........." to make the tab available to ...
3
votes
1answer
2k views

Passing parameter to controller extension?

I wish to create hyperlinks to a specific visual force page which displays a list of opportunities. The data in the page will need to be different. In some cases it will be all open opportunities ...
18
votes
4answers
25k views

Difference between controller and extensions

Can any one explain the usage of controller and extensions in Visualforce? In which scenario we have to use controller and extensions? Thanks in advance
8
votes
2answers
2k views

Test future dates

Struggling with how best to test my controller extension - My extension onload sets a picklist value based on the month number. My issue is I can only test current month e.g. Nov. If I explicitly set ...
3
votes
1answer
2k views

How can I use a standard set controller with ActivityHistory records?

I want to display a custom related list on my account detail page that mimics the standard Account History related list with a few enhancements. I want to enable pagination so I have defined a custom ...
6
votes
2answers
3k views

Retrieving custom fields from a standard controller in an extension

How do I retrieve custom fields from a standard controller in a Visualforce extension controller? In the code below, if I remove the hard-coded ID "this.personParentId = '001Z000000CkZ4m';", it fails ...