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
1 answer
165 views

Extension Controller for a parent record return all the child in the Database instead of child related to the specific parent

I have an Object Called Container__c with a child called Article__Container__c. I create a visualforce page to display all child with an Extension Controller. But when i Hit the button on the layout ...
Girbson BIJOU's user avatar
1 vote
1 answer
246 views

VF Component: Wrong type for attribute. Expected <someType>, found String

Simple use case of passing a parent controller's instance to a custom VF component's attribute to allow for inter-controller communication Component <apex:component id="SomeComponent"> <...
cropredy's user avatar
  • 67.6k
0 votes
0 answers
97 views

Cross-domain problem when use VF component from managed package

The original problem is that one of our customers can't use our VF component in their org because of Access to XMLHttpRequest at 'https://c.xNN.visual.force.com/apex/yourpath' from origin 'https://...
Adalyat Nazirov's user avatar
2 votes
1 answer
693 views

Passing values from apex:page controller to component?

Is there a way to pass values from a controller in a VF page down to a child component? I need a way to do the following: My page: <apex:page controller="myCustomController"> <c:...
Christopher Carlson's user avatar
0 votes
1 answer
532 views

Group by a column in Visualforce

Please, Help me to group the Data by the column FFP_Centers__c in a visualforce page as in the attached Screenshot. The code below give no error, but i do not know how to group the result by a field....
Girbson BIJOU's user avatar
0 votes
1 answer
303 views

How to pass data from parent VF Page into child VF Component

I have come to the problem, when I am using VF Page in which are VF Components loaded. I have in my main page controller method, where i do SOQL for Account and save it into theAccount variable. My ...
David's user avatar
  • 309
0 votes
1 answer
212 views

JS Query variable binding

Trying to transfer an apex query to Javascript. Wondering if binding works in the same manner? Also is using result.length valid for the if statement? var accLike = '%' + 'Construction' + '%'; var ...
ebar's user avatar
  • 447
3 votes
3 answers
26k views

Check if object is null and return null

I'm doing a query to an object. My question is if nothing returns is it technically null. I want to return null if it is. People person = [SELECT Id, Type FROM People WHERE (Type LIKE '%Construction%'...
ebar's user avatar
  • 447
0 votes
1 answer
34 views

Dynamic value Apex

Currently have this line of code. <li><a href="{!URLFOR($Action.Attachment.Download, '00Pr0000ID00000')}" target="_blank" name="Application" id ="{!ApplicationObj.id}">Download</a>&...
ebar's user avatar
  • 447
1 vote
1 answer
660 views

New custom field missing in standard controller?

This should be a simple change. I am modifying code from a previous developer so if there are any suggestions they are very welcome. This is a simple button to call a VF page that will produce a pdf ...
Jerry Welliver's user avatar
0 votes
1 answer
267 views

How to make the target of an output link be displayed next to the pageblocktable?

So I'm having an issue trying to display the contacts of accounts next to the pageblocktable. The functionality I want to occur is that once an account is clicked to display the contacts for that ...
YGarcia's user avatar
0 votes
1 answer
105 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 ...
vedant gupta's user avatar
0 votes
1 answer
55 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;} ...
Bikash Pradhan's user avatar
-2 votes
1 answer
2k 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 ...
SKH's user avatar
  • 17
1 vote
2 answers
1k 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&...
SKH's user avatar
  • 17
4 votes
2 answers
245 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 ...
Eduard's user avatar
  • 4,947
1 vote
1 answer
2k 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 ...
vedant gupta's user avatar
3 votes
1 answer
3k 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. ...
vedant gupta's user avatar
0 votes
3 answers
5k 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 ...
vedant gupta's user avatar
0 votes
1 answer
2k 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"> ...
Robs's user avatar
  • 8,897
-2 votes
1 answer
1k 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. ...
Arvind's user avatar
  • 173
-1 votes
1 answer
124 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 ...
Arvind's user avatar
  • 173
0 votes
1 answer
596 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 ...
David Picksley's user avatar
1 vote
1 answer
458 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 ...
Eduard's user avatar
  • 4,947
3 votes
1 answer
360 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 ...
MAS89's user avatar
  • 131
1 vote
2 answers
388 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 ...
Mark's user avatar
  • 414
1 vote
2 answers
3k 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 ...
TheMikeyBoosh's user avatar
1 vote
0 answers
215 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="...
Jill_sfdc's user avatar
  • 453
0 votes
1 answer
348 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. ...
sdfcwolf's user avatar
  • 149
1 vote
0 answers
149 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" &...
Furquan Khan's user avatar
0 votes
1 answer
731 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 ...
Prassu's user avatar
  • 3
0 votes
1 answer
831 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 ...
L N's user avatar
  • 1
1 vote
1 answer
466 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 ...
Kris Ryan's user avatar
3 votes
1 answer
459 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 ...
Umair Ayaz's user avatar
0 votes
1 answer
738 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 ...
Will's user avatar
  • 43
1 vote
1 answer
38 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"...
Adam's user avatar
  • 53
6 votes
1 answer
610 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 ...
Keith C's user avatar
  • 134k
2 votes
1 answer
204 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 ...
DavidSchach's user avatar
  • 5,755
0 votes
1 answer
396 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 ...
user59569's user avatar
1 vote
2 answers
2k 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 ...
Laura Bejjani's user avatar
0 votes
2 answers
194 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 ...
David's user avatar
  • 309
1 vote
1 answer
5k 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 ...
user avatar
0 votes
1 answer
266 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 ...
David's user avatar
  • 309
0 votes
1 answer
663 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 ...
Ashutosh Arora's user avatar
0 votes
1 answer
212 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 ...
GmDeepakChounan21's user avatar
-1 votes
1 answer
2k 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. ...
Issac Pal's user avatar
-2 votes
1 answer
278 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 ...
Shivangi Patel's user avatar
1 vote
2 answers
195 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 ...
Issac Pal's user avatar
0 votes
1 answer
1k 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 ...
KHANNA's user avatar
  • 11
0 votes
0 answers
347 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 ...
Grzegorz Połuch's user avatar

1
3 4
5
6 7
23