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 [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.

-1
votes
0answers
29 views

Visualforce Component not working

We have converted Managed package application to unmanaged package application to one of our client. We have Visualforce Component it is mentioned in Visualforce page with namespace like <...
0
votes
1answer
32 views

Is there a way to change the value of a picklist on a vf page when it is copied from another picklist?

So I have a form that has 2 Address divisions. When the checkbox is checked the field values from one div copy to the other div. There is a country picklist in both the divs. But the value of that ...
0
votes
1answer
8 views

How to solve this error Unknown constructor 'MassDelete.MassDelete(ApexPages.StandardController controller)'

// Apex Class //This problem is occurred while I Use extension concept in VisualForce Page it give error Here is Code// public class MassDelete { public List<Account>accounts{set;get;} ...
-2
votes
1answer
25 views

how to create dependent picklist in vf page

I am having a multiselect picklist in that am displaying the list of profiles in the org using SOQL Query.My usecase is like when i click on any profile/profiles those related applications should be ...
1
vote
1answer
26 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" ...
4
votes
2answers
46 views

How is an object instance passed with apex:attribute reflected in ViewState?

BACKGROUND I want to build a wizard using Visualforce Components. For this I represent each step as a separate component. Each component has an attribute that represents a controller instance from ...
0
votes
1answer
34 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 ...
2
votes
1answer
69 views

Is there a way to create a searchable picklist in a visualforce page?

I have a picklist field and I was wondering if there is a way to add a searchbox at the top of the picklist where we enter a picklist value and it searches through the picklist to find the values. ...
0
votes
0answers
30 views

Custom Controller in Email Template not passing values to Class

I have created a simple visualforce email template: <messaging:emailTemplate subject="PRICING APPROVAL NEEDED for - {!relatedTo.CameleonCPQ__AccountId__r.Name}" recipientType="User" relatedToType="...
0
votes
3answers
42 views

What is the difference between Apex:messages and Apex:PageMessages in VisualForce? [duplicate]

I am having some confusion while using PageMessages and Messages in my VF Pages. I'm using an apex controller to pass a message to my vf page but the problem is that if I use PageMessages then it ...
0
votes
1answer
22 views

How to get List from Visualforce Component Controller

I have a visualforce component which is used in an email template to display a list of related items. Visualforce Component <apex:component controller="LeadProductsController" access="global"> ...
-2
votes
1answer
42 views

How to call one method after another in wrapper class? [closed]

I Have a lookup based on that value selected i have to query and get the select options. I am trying to call the wrapper class but its throwing me null pointer error.guide me where i am going wrong. ...
-1
votes
1answer
34 views

How to rerender specific row independently for picklist values

I want to render picklist values based on each row when lookup is selected. There is a filter where it checks the recordtype of the lookup and based on it picklist value will be displayed. The problem ...
0
votes
0answers
32 views

Explain side-effects of allowDML attribute in apex:component

In the documentation for apex:component it is said about the allowDML attribute: If this attribute is set to "true", you can include DML within the component. The default is "false". Allowing DML ...
0
votes
1answer
41 views

Lightning Design System full width modal

Very sorry for the low quality post, currently at a Salesforce event! We have an issue with a lightning component modal defaulting to 50% width with the app.css file setting that..! How can we ...
1
vote
1answer
76 views

Can I build a wizard with Visualforce Components?

The classic example Creating a Wizard shows how to build a wizard using 1 apex controller and several visualforce pages. In my case our wizard has 5 pages and 1 controller. The problem is that the ...
3
votes
1answer
58 views

How to share Visualforce page (<apex:page/>) controller with multiple child components (<c:componentName/>)

I have a Visualforce page that is essentially a form with 8 steps. It uses a custom controller. I have recently moved each step into it's own component (8 in total). Now what I am wondering is, can I ...
0
votes
0answers
19 views

Visualforce - Passing data from a child visualforce component to a parent visualforce page

I have successfully created a visualforce page (parent VF page) that includes a visualforce component (child). Using the parent controller, I need to retrieve a variable (a list of custom object) ...
1
vote
2answers
40 views

Visualforce component ids

Creating an element using visualforce: <apex:input id='myid'/> results in: <input id="j_id0:j_id5:j_id50:myId" type="text" name="j_id0:j_id5:j_id50:myId"> What is the purpose of adding ...
0
votes
2answers
79 views

Pass Id from Visualforce Email template to Controller

I am trying to pass an id through a Visualforce email template component to its class. The class creates a wrapper, to combine two objects records into one list. The two objects lists have a common ...
0
votes
0answers
9 views

Screenshot wave dashboard on visual force page

Is it possible to take a screenshot of the wave dashboard on visualforcepage using apex? Currently, I am using html2canvas to take a screenshot. But the problem is once I the a screenshot of the ...
1
vote
0answers
35 views

How to navigate from one visualforce component to another visualforce component

I have 3 tabs in which 3 different components are placed. How can I navigate from a button that is present in one component to another component? Visualforce Page <apex:page controller="...
0
votes
0answers
32 views

How to open the particular template based on templateID of docusign within salesforce

public with sharing class EmbedSigningController { public static Contract contract {get;set;} public static String envelopeId {get;set;} public static String tokenURL {get;set;} ...
0
votes
1answer
46 views

ActionFunction call a controller method but “system.debug” messages are not printed

I have a visualforce page with a page component showing a list of object. I need to call a controller method when a user updates an <apex:inputField> in order to print in the log that value. ...
0
votes
0answers
17 views

Tab being opened in a new tab as well overwritting the current tab

I am trying to open a tab in the salesforce console when the user clicks on a link but for some reason the link opens a new tab as well as overwriting the current tab with the new page. I am having a ...
1
vote
0answers
18 views

apex pageblocksection help text broken

I created a simple visualforce which has a form and an input field. I have give a help text to pageblocksection. Below is my VF page code. <apex:page showheader="true" sidebar="true" name="AMP" &...
0
votes
1answer
55 views

Need to query records based on external object relationship on another object

I have 2 lookups to two different objects: licence Type and Licence class Definition on Case Object. Licence Type is a lookup on Licence Class Definition Object. I want to filter Licence Class ...
0
votes
1answer
23 views

How to display a scrolling banner with alert on a Salesforce record page

I have several questions. How do I post below VisualForce message to be displayed to the Quote record page so when user clicks on the page, they will view this. Your help is greatly appreciated. How ...
1
vote
1answer
14 views

Conditional Visualforce Component call from Visualforce Page

We have to visualforce components. I wanted to call the components based upon a flag on the custom object. I ended up with the following visualforce page, which works, but since I am not really a ...
3
votes
1answer
57 views

Not able to call a variable from constructor

I am using a visualforce email template which calls a visualforce component and that component calls the controller class. I am sending an Id from the Email Template to the component and trying to ...
0
votes
1answer
66 views

Take Screenshot of Object Details

I'm looking to create a button in salesforce (lightning and classic) that I can add to any layout. Clicking this button will take a screenshot of the details page and will then send you to a ...
1
vote
1answer
17 views

How to save list of text from visualforce to controller?

I am trying to populate a list of answers. I have a list of questions and an empty array of answers that I pass to a visualforce page. The code in my visualforce page is: <apex:variable var="index"...
6
votes
1answer
77 views

How to keep components out of the Visualforce view state when they are not needed?

The view state problem we mainly run into is not properties of the controller using it up (as we use transient heavily) but the component tree that the Visualforce tags generate using it up. That is ...
2
votes
1answer
42 views

Which is more elegant/faster: Iterate over a large query result 25+ times or do 25+ queries?

NOTE: This is not an "opinion-based" question. I am asking a technical question about how the platform handles queries and memory. Please do not flag it. I want to display survey results using ...
0
votes
1answer
47 views

reRender problem In Visualforce page

I have one checkbox in an object I want to update that checkbox in visualforce page, I'm able to update that checkbox successfully using(command button) apex controller, but that problem here is I ...
1
vote
2answers
107 views

Displaying Account Closed and Account Open Cases On Case Page Layout

I created a new case layout and I would like to display the related account's related cases. I can currently show all the related account's cases but I would like to split that up into two related ...
0
votes
1answer
106 views

Advanced Approval Email Attachment

I have Advanced Approvals enabled in our organization for our Salesforce CPQ. When an approval is requested from the Quote, an email gets sent to the approver through a VF template. I would like to ...
0
votes
2answers
35 views

Apex command button render based on queue

Hello I have an apex:commandButton with action and if statement for rendering it. rendered="{!IF(theCase.Status == '7', true, false)} I somehow need to add to the rendered a statement, which will ...
0
votes
0answers
156 views

how to save records from visualforce page?

I need to save records from visualforce page.My requirement is I need to get related objects dynamically based on any parent record id.So I created 1 Vf component and controller for that where I am ...
0
votes
1answer
224 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 ...
0
votes
1answer
11 views

Check if child Cases have specific status

I need to make logic, that i can not save Case as solved as long, as there are actvie subcases (child cases). So I need to check somehow, if child cases are in status, for example 4, and than allow ...
0
votes
1answer
27 views

How to add close button in

How to add a close button inside <apex:outputPanel>... </apex:outputPanel> to close the Panel <apex:outputPanel rendered="{!renderErrNotActiveOrder==true}" styleClass="demo-only" style=...
0
votes
1answer
57 views

Issue with Visualforce page email template subject line

I'm trying to send 3 different email using a single email template and visualforce component. I'm using rendered to display the text in html email vf component based on conditions. However, when I'm ...
0
votes
1answer
33 views

File Upload Issue on VF Page (Customer Community )

I have one picklist on VF page based on changes this picklist I am rendering one VF component which contains some input fields. With the help of I am trying to create a case and Attachment (case ...
-1
votes
1answer
232 views

Apex Language Server Extension not getting activated in Visual studio code - ForceCode: Force Menu

I have made changes to the JSON setting like "salesforcedx-vscode-apex.java.home":"/Program Files/Java/jdk1.8.0_131" but still Force Menu is not getting displayed in the Visual studio code menu. ...
-2
votes
1answer
38 views

Send email (Visualforce Email Template) included Visualforce component which render after update action

Want to send email after update with multiple records I have used Visulaforce Email Template with Visulaforce component having controller. Visulaforce component that getting list of record in table ...
1
vote
2answers
128 views

Show checkbox while loading component

I have used Check all / Uncheck All checkboxes function to select group of Values. I used to display some data in aura iteration with checkbox values checked. If the data row is more than one its ...
-1
votes
1answer
107 views

Iam facing system.stringexception: String length exceeds maximum: 6000000

Iam trying to upload a file using vf custom component on attachment using Remoteaction method. Iam unable to upload file morethan 4.3mb. Is it possible to upload morethan 20mb using vf custom ...
0
votes
0answers
58 views

Pass value from one VF component controller to another VF component controller within same VF page without side-effects

I wonder how to pass value from one VF component to another VF component within same VF page. I think that Passing VF Page controller to component and set it as parentController in component Apex ...
1
vote
1answer
29 views

Visualforce forcing components together

I have a strange issue. I have a component that constructs a visualforce line chart: <apex:component id="ShowGraph" layout="block" controller="ControllerShowGraph" selfClosing="true"> <apex:...