Linked Questions

0 votes
0 answers
40 views

Cannot get current page ID with VF page in Community [duplicate]

I built a VF page that is used in a community and I am trying to grab the current page id using ApexPages.currentPage().getParameters().get('id'). For some reason, this always returns null. If I use a ...
cb4085's user avatar
  • 1
2 votes
5 answers
15k views

What is the use of ApexPages.StandardController? [closed]

What is the use of ApexPages.StandardController in the below? Code public class myControllerExtension { private final Account acct; public myControllerExtension(ApexPages.StandardController ...
user avatar
1 vote
3 answers
8k views

Constructor not defined: [].<Constructor>(ApexPages.StandardController)

I read through other Constructor posts but it seems that maybe my criteria is little bit unique in terms of my approach, I am writing a test class for a working page/apex class that works perfect ...
Nick's user avatar
  • 7,123
0 votes
2 answers
5k views

How to test class called through a button with Visualforce

I Have this apex class which is called trough a button calling a visualforce page. How do I test my Pagereference in my testclass? I do not have coverage from // Code we will invoke on page load. ...
Jenssen's user avatar
  • 31
2 votes
1 answer
2k views

Unable To Cover StandardSetController.getSelected Loop

I cant seem to figure out why the creation of this custom object is not getting hit by my test class. Any help would be greatly appreciated. Here is the test class: @isTest public class ...
Allen Mann's user avatar
  • 1,092
0 votes
1 answer
2k views

Visualforce page with custom conroller not available for button

I found many related articles on this, but the details of my situation don't seem to line up with the common queries. I have a VF Page that I want to pull information from via the current account. So,...
Natalie Spatharakis's user avatar
2 votes
1 answer
2k views

How can I display custom object data in a table on a VF page?

I am trying to display data in a VF table that is stored in a custom object named medication. The medication object is a related to a Case. When I go to a case detail page I want the use to be able to ...
CodeYankee's user avatar
5 votes
1 answer
1k views

View state does not appear on pages using Standard controllers?

I am looking into 'View State Limit exceeded' error and want to display the View state information using the development mode footer. For my user, I have enabled both Development Mode and Show View ...
TSmith's user avatar
  • 5,062
2 votes
1 answer
1k views

Making the FinishLocation of a Flow as the newly created Record

I am creating a new record using Screen/Create Record elements of a Flow. I am starting that Flow with a customized New button. I am now attempting to make the FinishLocation as the newly created ...
Zoom_v's user avatar
  • 3,904
1 vote
1 answer
767 views

Preventing CSRF when POSTing to a standard controller with a custom extension (Visualforce)

We have an anti-CSRF token for Visualforce Pages - "Require CSRF protection on GET requests". This token is meant to restrict CSRF for pages involving GET type requests, e.g. the pages ...
karan bhargava's user avatar
0 votes
2 answers
600 views

Pagination with the CustomController is not working?

I am developing Pagination code, but facing the below error: Unknown constructor 'AccountDisplatRecClsPagination.AccountDisplatRecClsPagination(AccountDisplatRecCls controller)' ...
user4567570's user avatar
  • 1,636
2 votes
1 answer
156 views

Extension Test: Constructor not defined: [<Extension-Name>].<Constructor>(ApexPages.StandardController)

I tried to write a Testclass for an Extension that is supposed to handle a replacement for a creation-page. TestClass: @isTest public class VisualforcePageExtTest{ static testMethod void ...
Tim Werner's user avatar
1 vote
1 answer
31 views

Visual Force Page Extension Test Class

I have the below controller written and I have never had to write a test class for one of these so I am not sure how to go about it. Any thoughts? public with sharing class sortController { Public ...
cmmoutes13's user avatar
  • 1,057