Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [apexpage]

The tag has no usage guidance.

0
votes
1answer
19 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 ...
1
vote
2answers
59 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="...
3
votes
1answer
50 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
2answers
70 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
1answer
177 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
0answers
34 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
1answer
113 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
1answer
111 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
1answer
42 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
1answer
24 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
2answers
78 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
1answer
24 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
0answers
63 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
1answer
164 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
0answers
109 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
1answer
59 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
1answer
657 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
1answer
148 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
1answer
588 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
2answers
444 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
1answer
304 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
1answer
54 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
1answer
1k 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
1answer
825 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 ...