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 and , that can be used to develop Visualforce pages. In addition, you can build your own custom ...

learn more… | top users | synonyms (1)

1
vote
1answer
23 views

Rendering Array of Custom Objects in Component

I have a custom visualforce component with a controller, it takes an attribute of an Id of a related record, and in the controller I query for the set of objects I want to display. When I attempt to ...
0
votes
1answer
13 views

Saved Records in Read Only Mode on Refresh in VIsualforce

I have a VF page in which I am saving and adding the values through two buttons. Buttons are working fine. when i click the add button, a new row is added and when i click on save button,data is saved ...
2
votes
1answer
23 views

Visualforce Controller test assertion fails

I have a visualforce controller that populates a VF Gauge on a dashboard. I am working on the test as I got the gauge to look and work how I want. The problem is that when my test class runs the ...
0
votes
1answer
16 views

Can I use a custom component in a different Namespace within Visualforce

I want to make some slight modifications to the visualforce page display for an application that was installed via a managed package. The manage package allows me to view the VisualForce code for the ...
0
votes
3answers
23 views

VF Email Template Error - Attempt to de-reference a null object

Hello everyone I am trying to get my visualforce email template to work this component is used on the Opportunity and Contact Objects. Both email templates are showing the Error occurred trying ...
1
vote
3answers
35 views

I need to get the time that a user spent on particular case. How can I Implement this?

I Need to get the amount of time a user spent on a particular case. How can I get this? Someone please help
0
votes
0answers
30 views

Want to onmouseover, onclick, onselect action function on VisualForce component. How can I do it?

<apex:component controller="AutoCompleteV2_Con" selfClosing="true"> <apex:attribute name="SObject" description="SOQL Object to query" type="String" assignTo="{!sObjVal}" ...
1
vote
1answer
45 views

how to retrieve the data from the database according to check box selected? [closed]

I am having collection of check boxes i want to select the values according to the check box selected please help me API:Characteristics__c public void Submit() { Selection = new ...
1
vote
1answer
37 views

how to display all check box?

i have attached the code. Goods with Cats<apex:inputCheckbox value="{!Good_with_Cats_c.Good_with_Cats__c}"/> High Need<apex:inputCheckbox value="{!HighNeed_c.HighNeed__c}"/> ...
1
vote
1answer
40 views

Can I extend apex:outputtext in a custom component?

<apex:outputText> accepts an arbitrary number of nested param tags, which is useful for inserting values in Custom Label translations. Unfortunately there's a bug: if there's an apostrophe ...
3
votes
2answers
17 views

Invalid Cross Reference Id Error due to rollback

I am facing an error when I am using savepoint and rollback while saving a record: Here is my code public PageReference saveRecords(){ //Boolean to signify if all DML operations during save are ...
4
votes
1answer
102 views

My Header and Footer overlaps with the content in a PDF Visualforce Page

I am trying to render my PDF page with a header and a footer, that are actually images, and a content, that expands in more than one page. The problems that I am facing are: The Header gets ...
0
votes
0answers
46 views

Setting focus <apex:inputText> using <apex:actionFunction> without selecting its content

I have a inputText box inside an output panel, which will be rendered by an actionFunction. And I am trying to set focus on that field using the focus attribute of . Now, whenever popUp is rendered, ...
1
vote
1answer
51 views

Issue with Text file download in Visualforce page

I have a download text content functionality in my visualforce page, on clicking which a text file(.txt format) will be downloaded. This file will be created dynamically with the data stored in a Text ...
0
votes
2answers
14 views

VF component doesn't render in HTML Email Template

What's wrong with this Apex/Visualforce code that it returns nothing in my HTML email template? I've tried everything. Controller: public class EmailController { public Id leadId { get; set; } ...
0
votes
1answer
37 views

Unable to set focus on <apex:inputText> inside an ouput panel of visualforce page

I am quite new to Visualforce and Apex. I am trying to set focus on the apex inputText field, placed inside an ouputpanel, which will be popped up based on an action function. I tried setting focus ...
3
votes
3answers
81 views

Text file download in Visualforce page

I have a download button in my visualforce page, on clicking which a text file(.txt format) has to be downloaded. This text file will be created dynamically with the data stored in a Text field of a ...
0
votes
1answer
34 views

Image selection on VF Page

I have a 4 step wizard displaying images on visualforce page. I have created a text rich field on product with family as "t1", "t2", "t3", "t4" where I store images. I have to display images to my ...
2
votes
1answer
42 views

Get the specified child relationship Name from Parent

I have a VF component where I am trying to get related list(child) of any record( say Account, depends on the value I give in my VF Page). I have two attributes in my VF component , objectvar- which ...
0
votes
2answers
46 views

How to customize related list order in Custom VF page? [closed]

I have written custom VF page on CASE object to show custom object as related list to the CASE. I could able to do that but I need to show at the top of all other CASE's standard related list. Im only ...
0
votes
1answer
41 views

querying related child object from parent in VF componenet

I am trying to build a reusable VF component which can return all the child of an parent object. I just assign the parent object in my VF page and rest is taken care by the VF component to display the ...
4
votes
2answers
83 views

AssignTo variable in attribute

I have a visualforce component as below: <apex:component controller="RecordDisplayController"> <apex:attribute name="objectName" description="An Sobject" type="Sobject" required="false" ...
0
votes
1answer
22 views

How use apex attribute of type Sobject

I am building a visualforce component where I have: <apex:attribute name="objectName" description="An Sobject" type="Sobject" required="false"/> <apex:attribute name="ChildName" ...
1
vote
1answer
8 views

Custom Component Not working as expected

I am using an example of custom component from - https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_comp_cust_elements_attributes.htm Here is my custom Component: ...
0
votes
0answers
17 views

View state in Visualforce components

I am developing a VF page which will have two components. These two components will be placed multiple times on the same page with different input parameters. I am not sure how much view state will ...
2
votes
1answer
35 views

Getting a list of custom Visualforce components

I am trying to write a class that will list all custom Visualforce components in an .org on a page. I see that my custom components are included in the component reference at ...
0
votes
0answers
12 views

VF Component attributes assignment order issue

When passing parameter to VF component, the common issue is that it's not accessible from the controller's constructor, so as the workaround one can fire constructor-like method when the property is ...
0
votes
0answers
19 views

Building a custom page for contract

I have a requirement where I would like to create a custom button on the Contract object. My contract object has currently 50 fields in it. I would like create a custom functionlity where I have a ...
0
votes
0answers
31 views

If used inside a VF page, what is the difference between canvas and iFrame?

I am in a visualforce page. Based on what I know about canvas, all that I can do using a canvas can be done using an iFrame. What advantage does canvas give?
0
votes
2answers
22 views

Save&New functionality

in the below controller class save button functionality working,but i need to write save&New (SV)button functionality..please suggest me the approach to complete this functionality. public ...
1
vote
2answers
36 views

Conditionally Render Input Fields from Component - Visualforce

I am trying to figure out how to render a Visualforce component containing inputfields conditionally, depending on a stage field outside of the visualforce page. I would like to render a different ...
3
votes
2answers
40 views

displaying the vf page details as pdf

I am trying to coverting vf page as pdf format,for that am usinf contentType="application/pdf" <apex:page standardController="Opportunity" extensions="PDFcontroller" ...
6
votes
1answer
71 views

Unexpected Visualforce Order of Execution with component attributes on Get Request

I've hacked this small example of the unexpected order based on Order of Execution for Visualforce Page Get Requests. From the linked docs (my empahsis): The constructor methods on the ...
1
vote
1answer
17 views

Error: Unknown property 'PAModel .saveAllRelated'

I have the following piece of code in a component <apex:attribute name="Model" description="" type="PAModel" required="true" /> <div> <input type="button" style="display: block; ...
-3
votes
2answers
59 views

display opportunity products in a table

i created custom button on opportunity object which will redirect user to a VF page which will populate some opportunity fields and a table showing related opportunity product details ...
0
votes
0answers
18 views

ability to override forecast of revenue at the Opportunity Type

Managers can make forecast adjustment on the rollup of the opprtunities but now we need the ability to override forecast of revenue at the Opportunity Type and/or Product Family level also. What can ...
4
votes
1answer
41 views

How to redirect to PageReference from constructor

I need to prevent user from accessing standard community pages like /login and /sitelogin, because I have custom branded pages. In Salesforce SiteLogin.component there is no option for action (method ...
1
vote
1answer
45 views

how to delete the multiple record with checkbox

Here user should be able to select multiple contacts by checking the checkboxes and on clicking delete contact button, all the selected contacts should be deleted. VisualForce Page: ...
0
votes
1answer
28 views

How to Remove chatter header?

How can i remove chatter header (in black). This is a iframe.
1
vote
0answers
22 views

Dynamically assign attribute value to custom vf component

I have a custom vf component that takes in account ID as a parameter. The vf component takes in the ID of the account and displays all the contacts under it. I have a pageblocktable that iterates over ...
0
votes
2answers
52 views

How to get the Value from column in below shown Visualforce Pageblock Table to apex method?

i want to take the value in Unit column and pass it to a variable in apex method as parameter. below is the Vf page code and apex method` <apex:pageblockTable value="{!Cond}" var="a" ...
0
votes
2answers
57 views

how to count the number of records selected through a checkbox

i want a vf page that has the account records along with a checkbox i want a counter field on VF page that shows the no. of records selected
0
votes
1answer
28 views

VF page does not display outputfield

I have this below VF page where I am trying to display the contact's name: <apex:page standardController="Account" > <apex:pageBlock title="Account's contact"> <apex:pageblocktable ...
2
votes
2answers
43 views

Intercept New Case Button with Visualforce - Won't recognize field in IF statement

I am trying to create a Visualforce page that intercepts the "New Case" button on the account when billing status = cancelled and returns an error that a case can not be created. If billing status ...
1
vote
0answers
16 views

Lookup value is not populating at first place in the picklist field? [closed]

I have a picklist field named account on the Lead object which populating account value from Account through "Search"(lookup) button from lead. But the value is coming as the first value in the ...
0
votes
2answers
34 views

Migrate from dev org to partner editon [closed]

How to migrate the triggers and classes and components created in developer edition to the partner org so we can make it into to package. The objective is to make it into a unmanaged package..please ...
0
votes
0answers
58 views

Call javascript from visualforce page to visualforce component

Visualforce component : <apex:component controller="AutoCompleteV2_Con" selfClosing="true"> <apex:attribute name="SObject" description="SOQL Object to query" type="String" ...
2
votes
1answer
160 views

How can I change the logo on a public site?

I spend a fair amount of time trying to update the logo for my public site. However, I was trying to edit the sitetemplate with no avail and the header.svc Do I put this in Static resources or ...
3
votes
0answers
35 views

How do I create a dependent inner component?

I know standard Salesforce has component dependencies on certain components; I want to recreate that functionality. For example if I attempt to use <apex:commandButton> outside of a ...
1
vote
1answer
37 views

Apex includescript is disabling tabs in Visualforce

I have this java script. The purpose is to open a NEW tab on any outputlink field. The script works but it disables my other tabs. When I remove my Includescript the tabs work but any outputfield ...