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
8 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
494 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; ...
0
votes
0answers
17 views

Form resubmission undeletes a deleted record [closed]

I have a visual force component that displays records of a custom object named customer. After I create a new record of customer object, I start getting form resubmission warning before every refresh. ...
1
vote
2answers
635 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 ...
0
votes
0answers
10 views

select all option for particular list vf page [closed]

I have two lists on my VF page I gave selection all options for both lists separately. Now if I am selecting 1st list select all option it also selecting all 2nd list but I need select all option ...
1
vote
1answer
550 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
21 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
442 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
385 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
744 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
27 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
503 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
384 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
61 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
49 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
29 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
1answer
953 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
0answers
19 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
838 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
47 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
624 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
734 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
25 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
57 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
28 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
43 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
26 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
942 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
474 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
82 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
764 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
105 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 ...
3
votes
1answer
385 views

Accessing inputField Values Created Inside apex:repeat

I need help in getting values from VF component page, just for the sake of clarity I have added very few fields to make my point across. How to access inputField values that are created inside an ...
2
votes
3answers
5k views

passing data from Page controller to component Controller

I want to pass list of record from VF page controller to component controller but when i access variable in component controller using object creation then i am getting null value. I am taking Example ...
0
votes
0answers
12 views

Pass the new inputfield value to javascript before writing to the database

I have VF page. Some code: <apex:page standardController="CallReportHosp__c" extensions="CtrlCallHospEdit" id="CallsHospEditt"> <apex:form id="myForm"> <script type="text/javascript"&...
0
votes
0answers
9 views

Visualforce parent page child component communication question

I hope the following diagram elaborates the issue somewhat: Here is my use case: A VisualForce Page has the following area in it: A pageblocktabledisplays that shows some line items with some input ...
2
votes
2answers
372 views

Visualforce Side Panel

Can we do a side panel with tabs in Visualforce? I see apex:tabPanel tag that show tabs accross the top of the page, but what about adding the tabs on the left side of the page? Thanks
0
votes
0answers
21 views

Multiple File upload on public visualforce feedback form

I'd like to provide a multiple file upload module on a public visualforce page and I'm struggling with the upload process. As the upload process requires to have a record ID, how can I save the ...
1
vote
1answer
1k views

Jquery Datatable pagination checkbox

EDIT: I just wanted to expand little bit more give you guys more information as possible so my question is more towards the jquery datatable so when you go to different pages my checkbox is retain ...
4
votes
1answer
107 views

How to use polyfill in visualforce component?

Link to polyfill: https://github.com/jonstipe/number-polyfill The polyfill is to allow increment decrement buttons in Internet explorer for I added the .js and .css file from the polyfill as a ...
1
vote
1answer
2k views

How can I get lookup field value from VF page?

After I created a case and choose lookup field value(AccountId), I wanna get the value in my controller, but the field always return null. <apex:page standardController="Case" tabStyle="Case" ...
0
votes
1answer
572 views

Unknown consrtructor error in custom controller class

I am a beginner in salesforce and I am attempting to write a controller class for a VF page that searches records based on a criteria(Date and status field) But I am facing the following error: ...
2
votes
1answer
125 views

Call getContent() from Workflow Email Alert

I try to call the PageReference's getContent() method from a component that is nested in a visualforce email template. If the template is send via the test button, all looks great. However if I fire ...

1 2 3 4 5 21