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
1answer
400 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
233 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
68 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
120 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
174 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
95 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
45 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
2answers
832 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 ...
1
vote
0answers
66 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
128 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
184 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
160 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
88 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
155 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
246 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
204 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
57 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
99 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
474 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
329 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
106 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
2k 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
30 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
57 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
179 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
93 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
555 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
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
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
492 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
157 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
2answers
463 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
60 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
127 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
113 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
275 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 ...
0
votes
1answer
423 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 ...
2
votes
1answer
350 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
1answer
972 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 ...
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
149 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"/&...
0
votes
1answer
54 views

Unable to save my CMP

Below is my lightning cmp <aura:component implements="force:lightningQuickAction" access="global"> <iframe src="sforce.one.navigateToURL('/apex/Letter?Id={!Letter__c.Id}')" width="100%" ...
0
votes
1answer
781 views

Lightning component button not working

Below is my lightning component which calls a VF Page <aura:component implements="force:lightningQuickAction" > <!-- attribute to accept Visualforce page's javascript method --> &...
0
votes
0answers
2k views

Calling a VF page in a lightning component

I have a VF page which renders a PDF with a custom controller in it for my custom object. For the same, I have written a onclick JS button which is displayed in my classic view. window.open("apex/...
2
votes
1answer
129 views

Pass EmailTemplate relatedTo wholesale to a Visualforce Component?

Let's say I have a Visualforce Component similar to below: <apex:component access="global"> <apex:attribute name="relatedTo" type="MyObject__c" /> </apex:component> Now if I ...
1
vote
1answer
457 views

DML When Component is Loaded

Preface: I understand that DML is not allowed in getters/setters or constructors. The normal workaround to performing DML on page load is to use the action attribute on the page; however, that's not ...
0
votes
3answers
151 views

Salesforce for building real world applications [closed]

Is there any resource available for creating or building a real world application in salesforce which uses APEX and Visualforce SLDS components. Or can I build such type of apps. Can you my friends ...

1 2 3 4 5 21