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
6 views

Selecting template returns the error stating I don't have access to attached files

I have a classic email template which uses a VF component to generate its contents, in my sandbox it says I do not have access one or more of its attached files, except the email doesn't have any ...
0
votes
1answer
371 views

How to Re Render an outputPanel on a button click?

So basically I'm making a visualforce page and there is a section that needs to be re rendered on a button click. From what I've read on the internet I can use outputpanel to achieve this. What I need ...
0
votes
1answer
997 views

How do i pass data from visualforce page to component's custom controller?

I have a modal in the visualforce page that i want to move to its own component, for the most part its just displaying information. The data passed to the conponent controller constructor doesn't ...
0
votes
3answers
613 views

VF Email Template Error - Attempt to de-reference a null object

Hello everyone I am trying to get my visualforce email template to work this component is used on the Opportunity and Contact Objects. Both email templates are showing the Error occurred trying to ...
0
votes
1answer
449 views

How to fire the apex:inputfile upload dialog when a custom button is pressed

I have an inputfile component and a commandbutton with an action to upload a file. My users dislike the appearance of the inputfile component and want the upload dialog to be fired up when the ...
0
votes
2answers
603 views

How can I get child records in visualforce repeat from a subquery result

I have a table that uses repeat in a visualforce template. This uses a component with a controller to query a list of records. Each record has a many child records that I want in one cell. The query ...
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
1answer
2k views

Fetch specific field value (e.g. Name) from dynamic sObject in Visualforce page

I've read many suggestions regarding retrieving values from sObject in controllers and classes. I want to know if I can retrieve a specific field value from an sObject (which could be an Account in ...
0
votes
1answer
375 views

sforce.connection.query is not working on visualforce tabs

I have written one visualforce page and added custom visualforce tab for that page. Now I have opened that tab in Console application. It is not working. Could you please help me on this. ` <...
0
votes
2answers
36 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
44 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
vote
0answers
24 views

Send Approval Comments in Visualforce Email

I have a custom Visualforce email template with a VF component inside it that displays the most recent Comment from an approval process. It is built with the same approach shown in this blog post by ...
0
votes
1answer
24 views

Is it possible to use here 1 VF component for 2 VF pages?

I have a controller with 2 different methods: first takes the list of today's masters, and second - the list of tomorrow's masters. It's all the difference between my PDF pages: I made them as List ...
2
votes
2answers
446 views

Dynamic table component that displays selected sObject's fields with specified header values

I have a problem with making a dynamic table component that displays selected sObject fields with specified header values. The very first idea was to supply the component with an apex:attrubite of ...
0
votes
0answers
13 views

'chaturl/chat/rest/System/SessionId' from origin VF page blocked by CORS policyResponse to preflight doesn't passcontrol check

VF Code:-- <apex:page> <apex:includeScript value="{!$Resource.jQuery}"/> <script> function myFunction(e){ alert('working'); console.log('Function called'); ...
0
votes
2answers
504 views

Wrapper class list access while parsing response

I have wrapper class as follows: public class UBAPINewContractStatusResponse{ public ContractStatusResult ContractStatusResult; public class ContractStatusResult { public String Ok; ...
1
vote
2answers
656 views

Visualforce table display

I have created table using <table> tags. In that table Column Header values are coming dynamically from Apex class as a List<string>. While displaying it on the Visualforce page I am using ...
1
vote
1answer
558 views

Input field in Visualforce Component

I am attempting to update a field of an object from a visualforce component. That visualforce component is inside an apex:repeat tag. Here is the page that references the visualforce component (...
0
votes
0answers
23 views

Call Custom Controller Extension Method in Aura Component Controller

I have a visualforce page that uses Javascript to execute a lightning component which fires off a flow (as seen below): function selectHandler() { var curUser = '{!curUser}'; console.log(...
0
votes
1answer
444 views

CSS style issue for PDF in Visual force email template

I have one visual force email template which sends an attachment in PDF format. I have given style class for fields in the PDF, but the given CSS does not works for the PDF. Please help me out.
0
votes
1answer
450 views

Passing a record variable into Lightning component iframe

Apologies for the noob question here: I am creating a Lightning Component that will dynamically render a VF page embedded in a Lightning Component as shown below: <aura:component implements="...
0
votes
1answer
765 views

Upload an attachment from visualforce page and sent it to external server

I need to upload a file from the visualforce page and sent the file data to the Apex controller class. From that class I need to sent that file data to my server(Using Apex HTTP Callouts). My ...
0
votes
1answer
28 views

How to show fields based on a condition for other field

I want to show 4 custom fields (W__c, X__c, Y__c, Z__c) when other custom field have the following condition: If RealNumber__c < TargetNumber__c then show this field: W__c, X__c, Y__c, Z__c else ...
3
votes
1answer
1k views

Hide iframe url

I am using a visualforce page and adding an apex tag: <apex:page standardController="account"> <apex:iframe src="a.com/embed/preview/f?theme=dark fullscreen" width="100%" height="800px" ...
2
votes
3answers
504 views

Save error : Null - VF Custom Component - Eclipse IDE

I'm using Eclipse Kepler and the Force.com IDE for Spring '15. I've created a custom component that I can't save in the IDE. This component defines a pageblocktable, which includes a column defined ...
1
vote
1answer
410 views

How to do inline editing in pageblock table values

I am passing a list to the pageblock table and my table looks like below i want to edit the table values. I tried the below code. This is my VF Page code <apex:pageBlockSection id="section2" ...
0
votes
0answers
68 views

Lightning Component issue sObject type 'Site' is not supported in Spring '20 Sandbox

I am having an issue saving any lightning component code in the developer console. I think that this must be an issue with Salesforce because even just changing string values with in html causes error ...
0
votes
0answers
78 views

how to set an attachment to the sendEmail quickaction apI through lightning component?

i need to populate the attachment on send email lightning quick action api. i can able to set the subject to the email quick action, but i need to add the attachment to the email. How can i send the ...
0
votes
2answers
41 views

How to convert json string to List<Map<String, Object>> in salesforce apex class?

I have this json string. [ { "id":2, "name":"Abc_SS", "description":"Abc" }, { "id":100, "name":"sales", "description":"sales" } ] How I can convert this json to List&...
0
votes
0answers
20 views

Contact Activity Timeline - adding other Contact related information (Cases created)

A question: would it be possible to add to the Contact Activity timeline items such as Case created , potentially also Chats & Messages from the service console? The idea being a more wholesome ...
0
votes
1answer
875 views

How to send a visualforce page in a visualforce email template?

I am looking to send an email in the approval process but the email needs to have all of the information that we put on a visualforce page. The best solution would be to send the visualforce page in ...
0
votes
1answer
49 views

VisualForce Page - Apex:Repeat & Map not showing any values

I have problem showing my map value to the visualforce page, in my controller I populate the maps and create below method public Map<String, Decimal> getmapTargetCurrentMonth(){ return ...
0
votes
1answer
630 views

Multiselect picklist in in if condition in visualforce page

I am trying to rendered below code <apex:commandLink rendered="{!or($User.IsUser.contains('admin'),$Profile.Name == 'System Administrator',) Is User is Multiselect picklist. While saving its ...
1
vote
1answer
737 views

How to pass values between two components

In a VF page, I have two i.e. A and B.In first component,there is a search box. Second component will display data type in first component search box. So How can I pass data between these two ...
0
votes
0answers
30 views

ActionSupport parameters not passing from component but will pass with same code outside component

Usually I'm able to find the answers to everything by searching, but I haven't come across any examples of this answered. I did find a couple questions that looked like they might be the same issue, ...
-1
votes
3answers
2k views

Display a phone number formatted in a formula field?

I have a formula field, which displays a phone number. But I'm having some issues getting the number to display correctly. Its showing up as "6678894949", when I'm looking for something like "(812)-...
1
vote
1answer
27 views

Persisting Logs in Managed Packages

What is the best practice to persist logs from apex classes, batch jobs, and controllers? We are still in the development stage so we haven't considered LMA. We tried to store it in a custom object. ...
0
votes
0answers
29 views

Structure of visualforce page using standard controller, extension and wrapper of data?

I am creating a component to add to a contact record that shows aggregated note data from two different sources. Page <apex:page id="AggergatedNotes" standardController="Contact" ...
0
votes
1answer
58 views

How can I pass a GET query param into my server side APEX controller?

Background: I am trying to redirect a user from an external site to my salesforce visualforce page with a GET query param as part of the URL. (This is part of a managed package) I want that parameter ...
0
votes
0answers
29 views

Javascript Error when trying to use apex:actionFunction on service console

I have a visualforce component I am working on that simply has a table of data that is shown on a page layout within the service console. When you click on a link in the table, it opens a subtab using ...
2
votes
2answers
2k views

Uploading from SF to AWS S3: upload works but all files are empty

I've made a file uploader from SF to AWS S3. Everything works as expected except for the fact that the file itself in S3, despite its size reading correctly, is empty: public pageReference ...
1
vote
1answer
48 views

Trying to create an apex page with a specific height

I am not new to development but am when it comes to Salesforce Visual Force. I am trying to create a page that will be a certain height. When this Visual Force page is inserted into the Salesforce ...
0
votes
1answer
27 views

Pass the ID of current record to Visualforce Component from Apex Class/Controller

I'm working on a Visualforce Email Template which will be sent from the parent Loan (LLC_BI__Loan__c) record in Salesforce, and I'm trying to include fields from the child Entity Involvement (...
1
vote
1answer
961 views

Assigning values to the inputfield in Modal PopUp

I have a Bootstrap Modal popUp containing an input field, in my visualforce page. I need to prepopulate the default value on that readonly input Textbox whenever user clicks the Deploy Product button. ...
0
votes
1answer
12 views

Email address as a parameter in vf page

PageReference retURL = new PageReference('/OrderHistoryguest?orderNumber='+sapOrderNumber +'&email='+userEmailAddress); when i have passing email by apex class to vf page as a url parameter its ...
0
votes
1answer
490 views

component in visualforce email template

I am getting a controller error when i am trying to add a visualforce component to my email template, im struggling to debug why i'm getting the error? Error: Unknown constructor 'outboundEmails....
2
votes
1answer
178 views

Opening the VF page in a new Tab Lightning

We are converting a VF Page from Classic to Lightning and this VF page called from the button in Classic is like So when the button is clicked in Classic it opens the VF page in a new pop up window. ...
0
votes
1answer
773 views

Getting Blank PDF (without content ) using VF Email Template ( By default attaching PDF)

Original question: Hi All I have creaed approval process on custom object where i need to submit a PDF document for approval process. Once I attached the PDF file and submitted for Approval, am ...
2
votes
1answer
109 views

Apex:composition within a VF email template doesn't work

We're trying to use apex:composition in a Visualforce email template. This works fine if I simply do this: <messaging:emailTemplate subject="Template Example" recipientType="Contact"> <...
1
vote
2answers
1k views

Coordinates in Visualforce map results in different location to Google maps

I am using the apex:map component in a Visualforce page. I can successfully render a map using coordinates pulled through an apex class. However, the resulting location on the Visualforce page is ...

1
2 3 4 5
21