What's the deal with Deno? We talk with a major contributor to find out. Listen now.

Questions tagged [visualforce-component]

Visualforce components encapsulate a common design pattern and can be reused several times in one or more Visualforce pages. Salesforce provides a library of standard, pre-built components, such as <apex:relatedList> and <apex:dataTable>, that can be used to develop Visualforce pages. In addition, you can build your own custom components to augment this library.

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

Unable to render or rerender an outputpanel inside a visualforce page component

I am creating a visualforce application that has a main VF page with a side menu/submenu. Each menu/tab loads a VF component. The main page holds the apex form. The components do not have a form as a ...
0
votes
1answer
31 views

Collection size 79,276 exceeds maximum size of 10,000, extract record in csv formate

We are facing issue when extract data on click of a button, object have 81,258 records in the query. We click on that we are facing an error. VF Page: <apex:page standardController="...
0
votes
0answers
24 views

Visualforce Render as PDF pagination [duplicate]

I have a visualforce page with a component to create a tabular of timecard data. I would like to have the header rows repeated on each physical page and possibly even include a page number. Does ...
0
votes
1answer
27 views

How to destroy LightningOutApp

Can anyone please help me. I have implemented the LightningOut using visual force page to call a lightning component. When I am trying to destroy the lightning component using destroy() which is ...
0
votes
1answer
15 views

Insert parent and child record and reference parent in a single VF page

I have a VF page that inserts two records in a single page: Insert recipient__c object with required fields: school__c Insert scholarship_award__c object with required fields recipient__c, year__c, ...
0
votes
1answer
16 views

How to display static resource image in visual force component?

I have uploaded image to static resource. i just want to display it on the visual force componet (apex:component) . i tried this way <apex:image id="theImage" value="{!$Resource....
0
votes
2answers
37 views

Pass record ID to custom LWC Component and Modal Flow Screen

I am using lightning and I have a custom action button on the standard Account Detail screen. When the button is clicked, it opens up a Flow Screen which I have my custom Lightning Web Component (LWC)...
0
votes
0answers
17 views

Visualforce apex form not saving records

I created a basic VF page with an apex:form component however when I preview it and enter details, the record is not saved in my org. The same happens when I add the component to a community - is ...
0
votes
0answers
13 views

How to use custom VF component in managed visualforce email template [duplicate]

I am trying to use custom vf component in managed vf email template but it is giving me an error saying unknown component. My vf component is set to global already and all the attributes are also set ...
0
votes
0answers
14 views

Custom Dependent Picklist VF Page

In the image, There is a dependent picklist with field dependencies between Portfolio__c and Business_Line__c . Its values are stored in a wrapper class SolutionMapper. But now I have to convert it ...
0
votes
0answers
27 views

Page numbers in tables of contents(index) should be generated automatically

I am using Visualforce page and i want table of content(index) with page number. i am using the below code but i am not getting page number. or is there any other way to do the same? in vf page for ...
0
votes
0answers
11 views

How to include pageBlockItems in a apex:component?

We have a block of code that will be repeated several times in several VF pages. I didn't want to have to put it in each and then in the future have to find all the references to update it. My ...
0
votes
1answer
28 views

System.EmailTemplateRenderException: EMAIL_TEMPLATE_MERGEFIELD_ERROR: SObject row was retrieved via SOQL without querying the requested field

An Email template containing a VF component is being launched by flow. Email Template <messaging:emailTemplate subject="Manifest - Maritime Carrier Notification" recipientType="...
0
votes
1answer
33 views

Manage Files in folder and subfolder, like copy your files in your subolder choice

I need help, I'm trying to create a folder explorer in apex class and visualforce, it's when I want to copy a file in the folder, I can chose the folder or the sub-folder where I want to put my file ...
0
votes
0answers
35 views

Regarding Lightning Web Component Tab [duplicate]

I have tried to create a LWC tab in tabs menu.but i could not able to select my component from the list.i have 3+ Components and even i've created my-domain too,still i'm facing the issue.....can ...
1
vote
1answer
25 views

Grid System Doesn't Style Correctly in VFP Components - Vertical Alignment

Using Lightning Design System in a VFP, displayed on a lightning page through a VFP component, the grid system doesn't appear to be working on vertical alignment. What am I missing? Code: <apex:...
3
votes
1answer
120 views

Visualforce Component wrapped in a Managed Package Visualforce Component throws the error: Unknown component c:mycomponent

I have a managed package installed in a subscriber org. The managed package contains a Visualforce Component that I want to use in subscriber org. My goal is to use a subscriber org VF component ...
0
votes
1answer
20 views

Invoke Apex Class Method from Account Page

I have a class method that reinstalls a closed account. I need to create a button on the Account page that calls this method. I have my class called ClosedAccountMethods implemented as such: public ...
0
votes
1answer
28 views

Show new values and old values on Visualforce page

I am trying to display Old values and New values of a record whenever certain fields are edited on a record. How do we achieve this. Edit: I am getting the Oldmap and newmap from the trigger context ...
0
votes
1answer
26 views

HelpText doesnot appear on the VF Page [duplicate]

I am trying to add the HelpText in to the VF Page and I tried few options like below and none of them is working for me. Added the HelpText in the <apex:pageblockSectionItem> <apex:...
0
votes
0answers
10 views

How to pass data from child VF Component to Parent VF Component [duplicate]

I have two components, one component is a child of another component. I want to access value present in controller of child vf component in controller of parent vf component. Can anyone suggest how to ...
0
votes
0answers
20 views

<apex:outputlink> how to switch the value of target attribute between “samepage” and “_blank”

I built a table, each value on the first column will be a link. So if I click link A, a new tab will be opened. And then if I click link A again, instead open a new tab the already opened link A, ...
0
votes
1answer
79 views

Community Builder - Embedded Visualforce Page does not display

I'm building a Lightning Community. When I add a Visualforce Page Component within the Builder, it displays correctly: But when I publish changes and access the community, it does not: No errors are ...
0
votes
2answers
38 views

I'm trying to add a input -picklist field in my lightning component

Here are the snippets of code: Component: <aura:component implements="lightning:actionOverride,flexipage:availableForRecordHome,force:hasRecordId" access="global"> <...
0
votes
1answer
19 views

Format String Visualforce Component in a Custom Visualforce Template

I am struggling with something I think should not be difficult but I am not able to figure out, my date field display as the below screenshot. My aim is to remove from the template the characters 00:...
0
votes
2answers
37 views

Unable to make VF field read only

I have a field on a component for a VF page that I need to make read only for everyone unless they are listed in a picklist field(Project_Manager__c). I can see the usr value in the debug log so I ...
0
votes
1answer
71 views

Passing wrapper class data from vf to the component

how can i pass wrapper class data from vf page to component and show it in the data table or pageblock table I have the following code which creates the wrapper object. public class ...
1
vote
1answer
35 views

System.VisualforceException: Read access denied for Lead, controller action methods may not execute

I have removed Read and Created access for Lead object for Guest user profile which is for public sites. But controller is in Without sharing mode. Still it is throwing visualforce exception: Read ...
1
vote
1answer
48 views

How to store state and conditionally render UI of a VF component in JS

I am enhancing the app setup application to replicate Setup Assistant UI. To build the expandable setup UI. I need to store the state(Expanded/Collapsed) of the component. Normally in Aura/LWC, I ...
0
votes
0answers
32 views

Salesforce Note Lightning Component

Is it possible to create a custom Lightning Component which will open Enhanced Notes from within the component or added tab? I want it to be reportable related to the component, but only have the ...
0
votes
0answers
9 views

The first apex:tab inside a tab:panel always getting the default selection option value

We have seen a weird behavior in an existing component like below. Whenever we've changed the apex:selectOption value from the first tab of an apex:tabpanel is taking the option as the default value ...
1
vote
1answer
125 views

Constructor get called twice when Visualforce component has <apex:actionfunction> inside it

On my account detail VF page, I have added 5 custom related lists. 3 of those related lists have <apex:actionfunction> in the component code. I found out that the constructors of these ...
0
votes
0answers
22 views

Create select all checkbox such that if select all is done then all attachments must get selected

Below is my VF Page and i need to create select all checkbox such that if select all is done then all attachments must get selected and then user can delete them at a go. VF PAGE <apex:page ...
0
votes
0answers
30 views

Auto-populate lookup field works using onchange event but doesn't get selected

I have a Visualforce page where I have a lookup field Cleaning_Company__c. The Visualforce page is present inside a force.com site. I want this field to get automatically populated once the password ...
1
vote
2answers
36 views

Same Image Preview getting displayed for all attachments

I am trying to display respective attachment preview on a VF Page, but if you can see below picture of my VF page, same image is getting displayed for all attachments, not sure where i'm going wrong ...
1
vote
1answer
30 views

Create multiple delete functionality for all the attachments related to a particular case

I have created a button on case detail page called "delete attachments" once pressing that, the page directs to below VF page where all related attachments to that particular case are displayed with ...
0
votes
2answers
22 views

Result is Not Displayed After Pressing the button

I am new in Salesforce Coding. I am doing some practice in apex and visualforce page. I have one scenario here. Once I fill the form , land on next page. On this new page, when I click on 'Total ...
0
votes
0answers
18 views

Image not rendering as pdf in visualforce page when adding data:image/jpeg;base64 as an image property [duplicate]

I need to render an image in Visualforce as pdf. When I load the page without the renderAs="pdf" the image loads But the same image doesn't render in pdf except for a small box. Visualforce page to ...
0
votes
1answer
213 views

how to pass data from form made on LWC to visualforce page

I've been trying to connect paypal with salesforce using paypal api: "https://www.paypal.com/sdk/js?client-id=sb&currency=USD"> the problem, i'm not able to implement this api in lwc but i ...
3
votes
2answers
80 views

visualforce cross page communication

I have two visualforce pages, each containing a different visualforce component, that are on the same object layout, and now I have to make them communicate between each other. I have tried making ...
0
votes
1answer
21 views

How to separate particular field from a JSON response?

I am trying to retrieve a list of custom objects using an HTTP Request inside the visualforce page. I am able to send the request properly and I am also getting the result properly. The json response ...
0
votes
1answer
23 views

get <apex:input> value on button click

I have created a datepicker inside the visualforce page using <apex:input> and I want to get value of that <apex:input> into a variable. After little bit bit of googling , I found that ...
0
votes
1answer
45 views

how to display Url inside a <apex:pageBlockTable>?

I created a custom object with two cloumns, name and url. I just want to dislay these inside an apex page using <apex:pageBlockTable>. I used the following code: <apex:pageBlock id="...
0
votes
2answers
39 views

I'm getting the following error when I click New button which is a VF page that is linked with a PageExtension. Please help

List has no rows for assignment to SObject Error is in expression '{!urlIICRedirectEdit}' in component <apex:page> in page agciic_edit: Class.AgriFiIICPageExtension.urlIICRedirectEdit: line 45, ...
2
votes
1answer
77 views

ListView not loading - “Could not find requested ListView: '{!listName}'. Please contact your administrator.”

I have a combination of an Apex Class, an Apex Controller, a Visualforce Page and a Visualforce component that when put together, are suppose to show a drop down of Contact list views sorted ...
-2
votes
1answer
11 views

How to grab a my current Salesforce instance in an Apex class and reference it to my VF page [duplicate]

I know this should be a piece of cake but I am not a developer and just started today learning Apex. I have created an Apex class that supposedly grabs my current Salesforce URL instance then passes ...
1
vote
0answers
21 views

Accept button in email message that triggers a process in salesforce to update case record [closed]

I would like to know if it's possible to have Accept or Reject button in email message that a recipient can click then will trigger an update process (WF, PB or Flow) in a case record? The email that ...
0
votes
1answer
40 views

Issue with Test Class unable to cover SOQL query and insert statements

I have created a VF page that is basically a form. The issue is that my test class is unable to cover the SOQL statement inside the retrieve method. Also, it is unable to insert ptw or cle in save ...
0
votes
2answers
43 views

Not able to display list of string in visualforce email template

I have a controller public class EmailController { public string AppId{get;set;} List<App_Child__c> aPRList=[select id,name,status__c from App_Child__c where App__c=:Appid limit 10]; ...
1
vote
0answers
140 views

Using custom fonts in visualforce email templates

I am creating visualforce email template and need to use custom fonts (mostly Neutraface Display, SalesforceSans, TrailheadBold2). Most of the search results i get are about using them in visualforce ...

1
2 3 4 5
22