Tagged Questions

Content relating to Visualforce Controller Extension Classes

learn more… | top users | synonyms

1
vote
0answers
15 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
34 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
44 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
107 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
170 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
4k 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
121 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
32 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
423 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
201 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 ...
1
vote
1answer
994 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
255 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
1k 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 ...
7
votes
4answers
12k 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
7
votes
2answers
1k 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 ...
5
votes
2answers
2k 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 ...