Questions tagged [apexpage]
The apexpage tag has no usage guidance.
32
questions
0
votes
1
answer
196
views
Get the AccountId in the callout Apex class (below)
@all,
In the below apex class I need to get the related AccountId from the custom child class "Pending_address__c", tried multiple times but is shows null value, currently I am hardcoding it ...
0
votes
1
answer
348
views
Are there are standard actions for ApexPages.Action class in Visualforce Page?
I am building logic for Quick Action on List View represented as Visualforce Page.
And after some logic proceed I need to go back to the List View.
I have found the next piece of code which does it :
...
1
vote
1
answer
255
views
Email from ApexPage never arrives and no exception is thrown
I have a feature that sends emails to final user after an action is completed.
It is done by calling the oncomplete function on a commandButton on a ApexPage.
The testClass for the feature works fine, ...
0
votes
0
answers
26
views
How to cover Apexpages.currentPage().getParameters().get('Id'); in test class and assign id value to a child object [duplicate]
How can I cover these two lines in test class? I was able to cover first line but not the second. I need to create and assign the id to the child object.
Id oppid = Apexpages.currentPage()....
3
votes
2
answers
914
views
Why is the iframe (that wraps a visualforce page) title set to "accessibility title"?
I have a simple visualforce page running in Lightning Experience. As expected Salesforce wraps that in an iframe. But for some reason, the title attribute of the iframe is set to "accessibility title" ...
0
votes
1
answer
28
views
Connected app components randomly not loading
Connected app components are not displaying in our customers' orgs. Randomly the components are not loaded into their respective divs. Roughly 95% of the time they AREN'T loaded. If we disable cache ...
-4
votes
2
answers
345
views
Filter Id value is not valid for the Object standard controller
Now it works :) Thank you guys!
public class VFController {
public VFController(ApexPages.StandardSetController setCon){}
public ApexPages.StandardSetController setCon {
get {
...
1
vote
1
answer
556
views
How to conditional render an icon in component
I need a reusable component that will conditionally render a resource icon on a visualforce page.
<apex:page title="Visual Test">
<apex:pageBlock title="Result Component">
...
0
votes
1
answer
287
views
How to make the target of an output link be displayed next to the pageblocktable?
So I'm having an issue trying to display the contacts of accounts next to the pageblocktable. The functionality I want to occur is that once an account is clicked to display the contacts for that ...
3
votes
2
answers
1k
views
Overriding new button in List view to point to custom apex page
I want to override my new action (button on listview) for a custom object with a link to a custom apex page.
I have created an apex page with the following attributes :
<apex:page showHeader="...
4
votes
1
answer
869
views
HTML5 DocType not getting set
Any idea why this is not generating an html5 doctype in my pages?
<apex:page applyBodyTag="false" applyHtmlTag="false" showHeader="false"
cache="false" contentType="text/html" sidebar="false"
...
0
votes
1
answer
494
views
How can I remove the standard icon from <apex:sectionHeader>?
This is part of my VF page:
<apex:page docType="html-5.0" controller="DataRetentionExt">
<apex:form id="form">
<apex:sectionHeader title="{!$Label.DataRetention}" />
<...
-3
votes
1
answer
1k
views
How to call this pointer in static context [closed]
I have one static class in that where I'm calling one methods using this pointer in my apex class, I'm getting below error.
This cannot be referenced in a static context
below statement shows you ...
1
vote
0
answers
72
views
Error Creating an ApexPage with standardController via ToolingAPI: INVALID_TYPE : sObject type 'Case' is not supported
I am trying to create a ApexPage via Tooling API, that includes a standardController, following this example:
Creating Visualforce Page Using Tooling API
However it throws the following error:
...
3
votes
1
answer
589
views
How to add apex message in standard layout when custom button has been clicked?
I already tried adding ApexPages.addMessage with custom button and apex class.
Here is the custom button js code
sforce.apex.execute("InvoiceBreakdownController","doGetInvoiceHeaderAndDetail",{"...
2
votes
1
answer
152
views
How should I write and structure a good Apex Page Extension Test method?
I'm on the Advanced Apex Specialist Superbadge step 8 and I'm writing the test class, but what they are asking for seems different from what I've been taught about test methods.
I thought that I ...
0
votes
1
answer
992
views
Grid in vf page
Hi i want grid behavior in vf; below is the code i am using, but strange behavior is that my tooltip is missing and also label; for that i have used outputlabel anyways. How to render tootltip? I have ...
0
votes
1
answer
50
views
ERROR: PAGENAME (ApexPage) was not found on the server
This message appeared when I tried to save a file, the previous things that I did was cloning the project from git and synching it to Mavensmate.
I tried to refresh from server but no luck.
Code ...
0
votes
2
answers
218
views
Why am I receiving "INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST" when creating a new apex page?
I'm currently experimenting with creating a new Apex page from API. I'm using the API Explorer as this is the fastest for me.
{
"Name": "Test Page",
"Markup": "<apex:page standardController=\"...
-1
votes
1
answer
46
views
Add identifier to visual force page
We need to filter some specific visual force pages from the ORG.
Let's say we have 1000 visual force pages in total and there are 100 visual force pages related to the admin.
Now, we have to have a ...
0
votes
0
answers
214
views
How to remove The Red 'Error' Text and the Exclamation mark from apex page message [duplicate]
I want to remove the red 'Error' text and the exclamation mark from apex page message and want to show only the Message. Please see image below:
Providing sample code for reference:
Page:
<apex:...
0
votes
1
answer
378
views
Rerender the pageblocksection for certain fields in the same section
I have a VF Page, where I want to make certain fields as a required field based on picklist value. all the fields are in the same Pageblock section.
But here the issue is when I am changing the ...
0
votes
0
answers
534
views
Showing error message based on the source of page
I have a challenging scenerio here. I am using a VF page as a view page(ViewVF) ( which has detail page tag and apex pagemessage tag in it). I have a button on
this detail page which does some ...
0
votes
1
answer
187
views
apex:repeat render as pdf cant format based on css tags for table or td or th or span
.bPageBlock .pbBody table {
min-width: 90% !important;
max-width: 90% !important;
width: 90% !important;
margin: 0 auto !important;
}
.bPageBlock .pbBody td {
width: 45% !...
1
vote
1
answer
1k
views
Custom Save function for a Button
I believe cardRequest is the primary culprit in this issue. It is the record object.
Why does my save function not save and create a record of the page I am trying to save?
public PageReference ...
0
votes
1
answer
570
views
error message show if cityname is already exist on vfpage
want to show error message that if cityname is duplicate then show error message cityname already exists! whats i'm doing wrong anyone please tell
When saving record from cities tab and if dupicate ...
3
votes
1
answer
1k
views
How can I programmatically remove Sidebar and Header in Visualforce?
I am aware of the <apex:page> attributes for sidebar="false" and showHeader="false" but is it possible to determine these within the page logic (either Visualforce, legitimate Javascript on page,...
0
votes
2
answers
1k
views
Method does not exist or incorrect signature: ApexPages.currentPage.getParameters()
public class addAttendee {
public Account accounts;
public Contact del;
public Account acc1;
public List<Contact> addattendeeList {get;set;}
public List<Contact> delattendeeList {get;...
1
vote
1
answer
506
views
How to pass parameters in action method of apex:page tag
I have overridden the view page of opportunity and based of certain scenarios I am redirecting to different pages.
Initially I have used window.location.href inside outputpanel tag to redirect to ...
1
vote
1
answer
69
views
Is there a way to put help link closer to apex:inputField in a pageBlockSection
My Visualforce page screenshot looks like this:
As you can see, Find endpoint in Vision6 is a help link for the endpoint field, so I would like to make it closer to the inputField. However, I do ...
0
votes
1
answer
2k
views
Extract only the error message in custom exception message
Class: (Custom Exception)
public class CustomException extends Exception {
}
Using as below in my help class:
throw new CustomErrorException('No other characters allowed');
This is working ...
4
votes
1
answer
1k
views
How to query for all tabs' urls?
I am trying to query for all tabs in an org that a user has access to. Also I need their urls so that I can navigate to them.
I was thinking about [Select Name FROM ApexPage] but that returns a lot ...