Stack Exchange Network

Stack Exchange network consists of 174 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.

-2
votes
1answer
38 views

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

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
32 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
27 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
30 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
67 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
43 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
13 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
37 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
48 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
5 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
25 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
36 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
15 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
52 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
19 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
13 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
54 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
0answers
16 views

Open button downloads a file instead of opening it in a new tab

I am working on a published application which keeps users' files. Users can open these files in a new tab or new window or download them. For open and download systems I have some issues. Whenever we ...
0
votes
1answer
56 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
16 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"...
-1
votes
0answers
19 views

Disable an apex commandbutton using a javascript method

I have few lines to show some buttons on the screen. Two of them are Cut and Copy. Ideally, if none of the files in my Salesforce app are selected, Cut and Copy buttons should be grayed out. However, ...
6
votes
1answer
67 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
0answers
44 views

Related list you're trying to view isn't in the layout. Please get in touch with your administrator

I have a VF Page for Account that has the related list (Cases) added in the Vf page code. When I login in classic and click on account record, go to Cases related list and click on New case button - ...
0
votes
0answers
19 views

Visual Force: Pass javascript array from page component to Apex Controller

Hi I have a page component that checks all boxes in my table. There are also 2 arrays that will contain all the checkbox values and their checked status. How do I pass these arrays from my page ...
-1
votes
0answers
16 views

Adding text to Chatter Email Region using JS

Hi I am a newbie at sales force and developin a custom app. In my use case I want to send text to chatter - email section on click of a button. I tried using : document.getElementById("...
2
votes
1answer
41 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
41 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
85 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
67 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
0answers
282 views

Uncaught Error: reCAPTCHA placeholder element must be an element or id

I am trying to place multiple Captcha in single vf page. this are written in visualforce component. while loading i am able to see only one Captcha. when i have done inspect elements i got this error:...
0
votes
0answers
24 views

apex:commandButton showing even for people without Custom permission set

I have a problem with correct showing of apex commandbutton. Code of the button is <apex:commandButton value="Reopen" action="{!reOpen}" rendered="{!IF(theCase.Status == '7' && $...
0
votes
2answers
32 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
108 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
112 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
10 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
26 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
40 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
27 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
166 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
36 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
75 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
46 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:...
0
votes
2answers
73 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
31 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
0answers
21 views

How to give inline edit support for related objects?

I have created a Visualforce page where I have implemented inline editing for related objects from any record's detail page itself. Don't need to go to that object to edit fields. I have done this ...
0
votes
1answer
29 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 ...