Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [apexpage]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

Getting Invalid field ReplyToken__c for SObject Case: Markup while using tooling api to create an apexpage

here is the curl and response I am getting while trying to create an apex page curl --location 'MY_DOMAIN/services/data/v54.0/tooling/sobjects/ApexPage' --header 'Content-Type: application/json' --...
Karan Khadka's user avatar
0 votes
1 answer
253 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 ...
Shesha Kumar's user avatar
0 votes
1 answer
422 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 : ...
Vitalii Dehnerys's user avatar
1 vote
1 answer
288 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, ...
Olavo Alexandrino's user avatar
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()....
M D's user avatar
  • 1
3 votes
2 answers
1k 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" ...
Amudh's user avatar
  • 103
0 votes
1 answer
32 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 ...
FBuser's user avatar
  • 31
-4 votes
2 answers
377 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 { ...
Apelsinova's user avatar
1 vote
1 answer
601 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"> ...
Martin of Hessle's user avatar
0 votes
1 answer
312 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 ...
YGarcia's user avatar
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="...
David Geismar's user avatar
4 votes
1 answer
913 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" ...
Trace's user avatar
  • 43
0 votes
1 answer
511 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}" /> <...
Dmitriy Yurkin's user avatar
-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 ...
user59569's user avatar
1 vote
0 answers
81 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: ...
Bryan Sosa's user avatar
3 votes
1 answer
625 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",{"...
Rival's user avatar
  • 601
2 votes
1 answer
158 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 ...
rna7's user avatar
  • 347
0 votes
1 answer
1k 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 ...
Vivian's user avatar
  • 21
0 votes
1 answer
52 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 ...
Trang Tran's user avatar
0 votes
2 answers
242 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=\"...
András Taraszovics's user avatar
-1 votes
1 answer
47 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 ...
newBike's user avatar
  • 253
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:...
Kamruzzaman's user avatar
0 votes
1 answer
389 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 ...
Noob_NoVoice's user avatar
  • 2,709
0 votes
0 answers
546 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 ...
SfdcBat's user avatar
  • 4,811
0 votes
1 answer
190 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% !...
Shyam Raju's user avatar
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 ...
Quite Curious's user avatar
0 votes
1 answer
574 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 ...
cloudZigZag's user avatar
  • 1,366
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,...
Simon Lawrence's user avatar
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;...
Raghav Sharma's user avatar
1 vote
1 answer
509 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 ...
Y Singh's user avatar
  • 13
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 ...
Lance Shi's user avatar
  • 13k
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 ...
sf_user's user avatar
  • 2,260
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 ...
Arthlete's user avatar
  • 4,907