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
3answers
1k 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
446 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
286 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
70 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
1answer
140 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
2answers
930 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 ...
2
votes
1answer
784 views

Error 400 Unable to forward request due to: Stream closed

I am trying to implement a drag and drop attachment component from a tutorial ( http://www.jitendrazaa.com/blog/salesforce/salesforce-drag-and-drop-file-uploader-component-with-progress-bar-html5-and-...
3
votes
1answer
103 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 ...
1
vote
2answers
48 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 ...
1
vote
0answers
72 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
1answer
139 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. ...
1
vote
0answers
54 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
197 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
179 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
95 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
176 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
273 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
25 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
223 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 ...
0
votes
1answer
348 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 ...
2
votes
1answer
3k 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....
1
vote
1answer
140 views

Search Option in header. How to handle it?

This is the situation: I have 3 pages, Home/Search/Post I have a header and the search box is in that header which is component. Controller for that header component is SearchController. So first ...
1
vote
2answers
109 views

How to show “blank” value in the multipicklist component

I have used the below component and please guide me how to create the onchange event attribute. Code gets from : https://developer.salesforce.com/blogs/developer-relations/2012/06/a-multiselect-...
0
votes
1answer
107 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 ...
2
votes
1answer
60 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 ...
1
vote
2answers
532 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
0answers
128 views

Remove Visualforce Page from Home Page Sidebar

I've a Salesforce application in which on my Home Tab there is one page displayed in the Sidebar. I wanted to remove that page from the sidebar. I tried searching it in my Home Page Layouts and Home ...
0
votes
2answers
108 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
1answer
36 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
61 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
198 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
100 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 ...
-2
votes
1answer
42 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
votes
1answer
586 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. ...
0
votes
1answer
58 views

File upload via related list not working in IE11

at the moment I'm facing a really weird issue: I have a custom VF page, that embeds <apex:relatedList list="CombinedAttachments"/> and also a custom VF component. The uploading of files ...
1
vote
2answers
144 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 ...
0
votes
1answer
3k views

Insert records from a CSV file to saleforce object- Using Visualforce and apex

For example: I have cvs file with account object records . if i uploaded cvs file (in vf page need to create attachment button which takes cvs file and need to create uploadFile button which stores ...
0
votes
1answer
551 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
2answers
511 views

Error -[Cannot read property 'style' of null]

Error ID: -270960303 This page has an error. You might just need to refresh it. Error in $A.getCallback() [Cannot read property 'style' of null] Failing descriptor: {c:CommunityBreakingNews} ...
0
votes
0answers
172 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
32 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:...
0
votes
0answers
64 views

Attempt to de-reference a null object on dynamic binding visualforce Component

Here I am trying to get related object and their fields dynamically.In debug I am getting related objects and fields but error is while loading VF page.Here is my code: Apex Class: public class ...
0
votes
1answer
140 views

using Visual force Page How to Create a Custom Calendar For individual users

in our salesforce once click HOME Tab, showing Calendar button in Left side panel, like that i need to create a Custom Calendar link in left side Panel... how to achive the Solution can ypu please ...
1
vote
0answers
119 views

Using addError on object in trigger for custom validation messages is taking users to random Picklist Value Sets page in Lightning?

I have a page for a custom object that contains a link: <apex:commandLink styleClass="actionLink" onclick="return confirm('{!$Label.PCE_Are_You_Sure}');" action="{!URLFOR($Action.PCE_Step__c....
0
votes
2answers
289 views

apex:actionFunction redirecting to URL with only the visualforce page on it

I am calling the actionFunction from javascript. I tried having return false; after the call as is suggested on a couple other questions I found but nothing works. I tried specifying the reRender prop ...
1
vote
2answers
2k views

VisualForce - Row Headers

Anybody know how to display headers in rows? For example: Header Value ====== ===== Name Joe Smith Address 111 North First St. City Los Angela I have tried <apex:column headerValue=...
1
vote
1answer
1k views

How to use SLDS Icon in Visualforce Component [closed]

I have tried to used below code in Visualforce Component <img class="slds-checklrt" src="{!URLFOR($Asset.SLDS,'assets/icons/utility/check_60.png')}" style="width:20px"/> but not getting much ...
2
votes
1answer
366 views

Visualforce Component Error 'Read only property' when querying ContentDocumentLink

I'm working on making a Visualforce Email Template and I want to show all related Files related to a record. When I try saving out my Visualforce Component it gives the following error: 'Read only ...
1
vote
0answers
43 views

PDF not generated in printable view

Below is my controller public class MyController { public Letter__C letter{get;set;} public String isPDF { get; set; } public Boolean bolPrintableView {get;set;} public MyController(){ ...
0
votes
1answer
167 views

Unable to get value of ID from Lightning controller

Below is my cmp <aura:component implements="force:lightningQuickAction" access="global"> <iframe src="sforce.one.navigateToURL('/apex/Letter')" width="100%" height="500px;" frameBorder="0"/&...

1 2 3
4
5
21