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
3
votes
1answer
3k 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" ...
0
votes
1answer
973 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
0answers
12 views

Consolidate VF Pages into one Component; one uses Controller, other uses Extensions

I have a VF page that we want to have accessible by buttons in two different contexts. A: One Context requires that we use the "Controller" tag to assign the VF page's controller, as usual. ...
-4
votes
0answers
28 views

invalid Character identifier in wrapper class

public class CustomWrapperClass { public string Name; public string Course__c; public string First_Name__c; Public string Last_Name__c; public CustomWrapperClass(Training_Deal__c ...
0
votes
1answer
1k 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="...
1
vote
1answer
73 views

Inline Visualforce page vs Canvas App vs Lightning app

What are the difference between Inline Visualforce page vs Canvas App vs Lightning app. I'm looking to build an app that needs to inject UI inside detail page for an object. Should work for both ...
0
votes
0answers
13 views

How Can I Embed A Visualforce Component inside Lightning Experience Builder?

I am trying to embed a component from my Visualforce page inside the Lightning Experience builder. This will be specifically for the header and footer. I have a VF community and need the header/...
0
votes
0answers
10 views

Show modal when field value is changed

I'm stuck in this for literally hours, trying to figure this out but I havent had a clue yet. I want to show a modal, pop-up or alert if a field value in the standard Opportuntiy record page is ...
0
votes
0answers
19 views

How to Add Textarea Dynamically in vf page with Reference to records in object?

How to Add Textarea Dynamically in vf page with Reference to records in object Scenario: textarea fields should be displayed in vf page with reference to the records saved in custom object. For ...
0
votes
0answers
9 views

Display header column in all PDF pages using VF

I am trying to show the header column on all the pages, if I pass extra data, then the data table expands to the next page the header is missing, I need to show the header on all the page. First page: ...
1
vote
1answer
593 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
1answer
466 views

want to call Script from Visualforce page [closed]

When i run below code on button click event, it is not working. <apex:page > <apex:form > <apex:includeScript value="{!$Resource.jqueryAvaWidget}"/> <div id="...
1
vote
1answer
753 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
27 views

Mass Create Records in Salesforce

I have the following scenario : Object called " Project " I want to find and get only projects with a specific characteristic I want to take projects with a checkbox ticked/unticked. After ...
0
votes
0answers
11 views

Visualforce component datatable duplicates rows

I have a batch class which sends out email alert first of every month. Batch class triggers the email alert using Messaging class which then uses Visualforce component to have the list of records in ...
0
votes
1answer
1k 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 ...
17
votes
1answer
1k views

Using apex class as attribute type for component - Summer '14 IDE issue

I have a component that gets an instance custom Apex Class as an attribute, ie: <apex:component controller="ComponentController"> <apex:attribute name="myAttr" assignTo="{!attr}" type="...
0
votes
1answer
26 views

Validating the Max and Min Length of the input in VF Page

I need to validate few input fields in the VF Page, the validation is to make sure all these fields entered are 6 digits in length and cannot contain alphabets. Not all the fields are required, user ...
0
votes
1answer
33 views

Validating the input field in the VF Page

I am trying to Validate the user input in the VF Page. This custom field is a Text data type and the Maximum length is 6. In the VF Page I need to make sure this field entered is a numeric and cannot ...
0
votes
1answer
538 views

alignment problem in Vf email template

I have an email alert where a VF email template is used. and one VF component is used in the email template I'm facing alignment problem in Outlook desktop version but not in outlook web version . ...
0
votes
0answers
17 views

VF Page with the Multi select picklists

I am trying to use the multi select picklist field in my VF Page. The multi select picklist field has a default value, I was hoping when I use this field in the VF Page I should be able to see the ...
-1
votes
1answer
30 views

Invalid Id on visualforce

I'm trying to insert a record but it is displaying this error: Invalid id: Name of record . can anyone check it? Controller public class NightFlexList2Con { public string movieid{set; get;} public ...
0
votes
1answer
36 views

VF Page is not updating the record

I have a VF page to update couple of fields on the Opportunity record, it is a simple VF Page like below <apex:page standardController="Opportunity" extensions="Opportunity_UpdExt&...
0
votes
1answer
585 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....
0
votes
0answers
10 views

How to set Lightning Event in dynamic Lightning Component

I create a Lightning Aura Component with Lightning Event. Please see follow code. <aura:component > <aura:attribute access="global" name="flowName" type="String&...
1
vote
1answer
1k 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
20 views

Data Mapped from controller is not visible in VF page

I have tried retrieving values of data from the controller and map them to the VF page. But, the mapped data is not being visible on the VF page, whereas in the debug of the controller it is visible. ...
0
votes
2answers
985 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
1answer
865 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 ...
0
votes
1answer
24 views

How to display recently created record link in visualforce Email Template without using an Apex Custom Controller?

I have objects with lookup relationship "A"(Parent) and "B"(Child). Email need to be sent to User whenever a New record "B" is added on "A" and Email body ...
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 ...
0
votes
1answer
48 views

Mouse Hover custom helptext tooltip in a Visualforce page

I want a tool tip next to the Label 'Finance Sources'. If I hover the cursor on the label 'Finance Sources' the tool tip does not appear. However, if I hover the mouse above the label the tool tip ...
3
votes
1answer
4k views

Need Help in Making Dynamic Sooql using Like Operator

I am trying to create Dynamic Soql Query using Like Operator given as below: String tempInput ='\'%' + inputValue2 + '%\''; soqlRAD2 = soqlRAD2 + ' and BR_Opportunity__r....
3
votes
1answer
74 views

Visualforce components disappeared after an action

I am looking into a strange Visualforce effect. Now the problem can be simplified using the following example. MyController: public class MyController { public String firstName {get; set;} ...
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
43 views

Order of execution of getter setter methods in Custom Controllers

I am trying to learn custom list controllers but struggling to understand how the getter and setter methods execute using standard set controller. Can anyone please help with code comments as to how ...
0
votes
1answer
788 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: ...
0
votes
2answers
33 views

My VF page didn't load correctly

My vf page doesn't load correctly. I have to create a button just to load the contents of it. can anyone check it for me? here's the code: VF PAGE: <apex:page controller="NightFlexList2Con&...
1
vote
1answer
3k views

embedding a visualforce page in lightning component

I used an iframe to embed my visualforce page in a lightning component, but the page is showing me the error: Refused to display, in a frame because it set 'X-Frame-Options' to 'deny'. is this because ...
1
vote
1answer
21 views

Error in Preparing Msword document in salesforce visualforce/apex page

I am preparing Msword(Proposal) document in salesforce visualforce page.There is a small box in a header and footer level and special character in the content. I want to remove the small box and ...
0
votes
1answer
634 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
49 views

Is it possible to send data from visualforce page to lightning component?

I am currently using a visualforce page inside a lightning component.Is there any way to set the parent lightning component attribute from visualforce page or send data to the lightning component from ...
0
votes
3answers
934 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
20 views

How Can I Pass Data From My Visualforce Page To A Visualforce Component Inside of It

I have several visualforce components inside a Visualforce page. Instead of doing my SOQL queries inside each component (through an apex controller), I'd like to have a single soql query inside the VF ...
0
votes
1answer
14 views

Calling component controller through VF page by passing id as parameter

I have to write a test class for a controller . It is a component's controller. The component is called in a VF page in below fashion <apex:page standardController="Obj1__c" extensions=...
0
votes
1answer
633 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
890 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
53 views

Issue with Export to Csv when name consists of comma

we are trying to export data into csv file using Apex and Visualforce page in Salesforce . The data is being exported but we have an issue . Here we are exporting record from an object(Text Fields) . ...
0
votes
0answers
19 views

Why are my public URLS from Assets returning http instead of https?

I have images in my Assets library that I'd like to display in my Visualforce Email templates. To do this I have created some functions in my VF Controller like this: public String orgId { get { ...
0
votes
0answers
14 views

Is there any to check scheme url available or not in Salesforce App

Currently I face a problem, my product like follow structure. I want to know if our customer install My App or not, if not I will show a dialog tell him to install My App. I want to ask about is here ...

1
2 3 4 5
23