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)

0
votes
1answer
7 views

how to customize Partner Portal Homepage Components

I need to remove "recent items" from the Partner Portal homepage. Need to add a custom VF Page component on Portal homepage. Can anybody help me to achieve this. just basic step's would work ! ...
1
vote
1answer
32 views

“Client Cross Frame Scripting Attack” by Checkmarx Scanner for Visualforce component

I have got the Client Cross Frame Scripting Attack alert in the recent CheckMarx scanner. However, it points to an auto generated ID. I've seen the following links however, the I'm not sure about ...
1
vote
0answers
16 views

Best way to sort this visualforce email template output in descending order?

<tr> <th colspan="4"><strong>Update</strong></th> <apex:repeat value="{!relatedto.BMCServiceDesk__Incident_Histories__r}" var="CurrItem"> <apex:...
0
votes
1answer
44 views

Client Cross Frame Scripting Attack by Checkmarx scanner for visualforce component, [duplicate]

I am Using visualforce component for insert and updating child record. this component is reusable for multiple objects, like account, contact, etc., as like we can use this. I am doing DML inside a ...
0
votes
0answers
12 views

call component's controller save() method from page

Hello I have a visual force page which holds two components and a command button which show/hides two components, one is an array calendar for entering events and another is a visual calendar. Now is ...
0
votes
3answers
49 views

Sort List in Descending Order by BMCServiceDesk__date__c or CreateDate

I am working on a custom controller to sort the below apex:repeat list in Desc order by BMCServiceDesk__date__c or CreatedDate. Part of my VF email template and Controller code is below. I am ...
0
votes
0answers
19 views

Visual Force Component [closed]

How to Create a Component field attribute for address in Account field in salesforce,for below component attribute , how to create in salesforce,I am New to Visual Force component , please send code ...
-1
votes
1answer
34 views

creat vf page automatically account will be created

I am new to salesforce.I have one requirement,i create visualforce page automatically it creates the account.Please help me.
1
vote
1answer
16 views

compilation Error when calling Component controller method from Component

I have VF Component and component controller. I am trying to call action method incomponent controller from component and receiving unknown property error. Please see below, Controller public class ...
1
vote
1answer
19 views

Setting the lead in apex:actionFunction

I'm trying to refresh a Visualforce component like so: <apex:actionFunction name="refreshFileList" reRender="fileList"> <apex:param name="lead" value="{!lead.Id}" id="y" assignTo="{!lead}...
2
votes
1answer
24 views

How to get individual id's out of a custom controller list for edit button on a visualforce page?

I'm creating a vf component that displays a list of records. I would like to have an edit button within the pageblock table to link to the individual records, however, I'm not sure how to pull the id'...
0
votes
0answers
25 views

Is it possible to set video or animated motion in background full screen using Visual force page only?

I have to setup a login form with a background video or animation in motion in a web page completely in VF page. No Lightning help. Is it remotely possible ?
0
votes
2answers
27 views

Replace apex:InputField

we have a visualforce page which is exceeding 135 kb viewState limit. The page uses data of past five years from database with <apex:inputField> in <apex:repeat> and renders data.Now is ...
0
votes
0answers
32 views

how to pass parent Id from component and show child records on vfpage

I have created component and create attribute <apex:attribute name="parentId" description="Parent Id get" type="Id" assignTo="{!parentId}" /> and create parentId variable in class how to do ...
-1
votes
0answers
43 views

How to get or set a cookie in a test class?

I have created test class for code coverage but i m tried to set cookie but could not coverage form my code. Any one please suggest and resolved. Contact ocontact ; Cookie userlanguage = ...
0
votes
0answers
23 views

How to override the styles in iframe of canvasApp component ..?

I am using CanvasApp component in page. In this i am attaching and displaying the videos from external. I am trying to override the height of the video using the custom css. But height is not ...
2
votes
2answers
64 views

Uploading from SF to AWS S3: upload works but all files are empty

I've made a file uploader from SF to AWS S3. Everything works as expected except for the fact that the file itself in S3, despite its size reading correctly, is empty: public pageReference ...
1
vote
1answer
13 views

Can I access the content-type form a blob/inputFile?

I'm writing a component to upload some files to AWS/S3. How can I detect the content-type of the upload form inputFile or from a Blob of the file in Apex? req.setHeader('Content-type', ...
2
votes
1answer
21 views

facing problem with apex:inputFile component

I have used a apex:inputfile component and I have a button "Add more attachments" in my vf page. When I attach a file and click the add button, the attached file is gone. The page is reloaded ...
0
votes
1answer
15 views

Change the value of the component variable used in the “AssignTo” attribute of the <apex:attribute> tag

I am running into an issue with a custom component I have written. The controller for the component has the following member: public String crmId { get; set; } This member is used in the component ...
0
votes
1answer
40 views

Fetch specific field value (e.g. Name) from dynamic sObject in Visualforce page

I've read many suggestions regarding retrieving values from sObject in controllers and classes. I want to know if I can retrieve a specific field value from an sObject (which could be an Account in ...
0
votes
1answer
31 views

How can I display string returned by a Apex class method on VisualForce pages?

I have written the following Apex class. Now, I wish to display the string returned by getMonthsString() on VisualForce Pages. Here is the Apex class: public class MyFirstClass { public static ...
1
vote
2answers
28 views

How to change name of name of Visual Force Page in Force.com Developer Console?

I'm wondering how to change the name of the name of my visual force page (.vfp) in the developer console. This page is hooked up to SalesForce as a tab, and it would be extremley inconvenient to ...
0
votes
1answer
50 views

How to give access to a Visualforce Component to a profile

I want to give access to a Visualforce Component to a profile. I know I can give access to Apex Classes and Visualforce Pages under "Users -> Profiles -> [Profile Name]" as explained here. However, I ...
1
vote
2answers
48 views

VF Page Formatting with Repeat values is not working for me

Need help with getting the formatting correct for this VF page. The complicated part is I am calling a VF Component withing the page and it is making the repeats not play nice. The goal is to get ...
1
vote
0answers
17 views

Inclusion of license notice in managed package hosted on AppExchange

We have a managed package hosted on AppExchange. We would like to include Mutli-select picklist component provided here (https://github.com/metadaddy/Visualforce-Multiselect-Picklist) in our package. ...
0
votes
1answer
35 views

Internal Server Error, Error ID: 1289938336-249754 (526957723) on rendering image in a PDF email attachment

I'm stuck on this issue for more than 3 days now and have tried numerous workarounds to fix this. Let's begin with some background: I have an Order__c custom object, when Order__c.Status__c == '...
0
votes
2answers
64 views

VisualForce Component rendering on another page

I Have a component which was used thrice on another vf page and these are linked to three tabs in my homepage. I have NEW , MustRead and MostPopular Tabs. Component is having a download button upon ...
0
votes
0answers
42 views

How to remove elements from pdf header

I'm trying to remove some text from pdf header part but didn't find from where to be remove. My VF page--*** <apex:page standardController="Quote" showHeader="false" extensions="...
0
votes
1answer
81 views

i am getting System.TypeException: Invalid date: 30/06/2016

I am getting: System.TypeException: Invalid date: 30/06/2016 exception as I try to enter future dates in my date of birth inputtext. To validate this I have put below code: Date dt=Date.parse(...
1
vote
1answer
31 views

How to restrict profile from using custom button from visual force component

I have a visual force component on customobject page layout. I want that some profile users can only veiw the page and cannot use the custom button of that page. How can i achieve that.
0
votes
2answers
60 views

return list of records with different filters on single search button

I have used different search buttons but i want the same functionality which can be done with the help of single search button also i type any matching string with the record name then it should ...
1
vote
2answers
55 views

return a list of accounts on the basis of search account name

how to return the list of account by the providing the account name in input text. and after pressing the search button it should return the list of accounts with same name which is provided in input ...
1
vote
1answer
50 views

Apeax pageblock buttons showing space on left side of the panel

I have a pageblock table <apex:pageBlock id="PubListPanel" > <apex:pageblocktable value="{!AModel.List}" var="list"> <apex:column width="28" rendered=......... > <...
4
votes
2answers
49 views

CommandButton with JavaScript and controller method

I have a page with apex:commandButton which calls javascript to validate image selected and a method from controller to upload image. For some reason before javascript is done executing, controller ...
0
votes
0answers
20 views

Field not updating in controller

I have a visualforce functionality, a Custom Button 'Technical Coding' is available on my page. Please refer to the Images. Currently my controller is updating only 'Symptom' field other fields ...
1
vote
1answer
40 views

Visualforce Wrapper Object bound Lookup Input:Field Not Setting

I currently have a wrapper object that contains a Contact that will be bound to an input:Field in order to create a lookup for an Account. Currently the lookup field functions just fine, BUT then when ...
1
vote
1answer
55 views

Set a dynamic value/label on a command button

I have a command button within a visualforce component and I would like to allow the label on the command button to be dynamically passed through the component, for example: Component Attribute ...
1
vote
1answer
23 views

Add component validation to avoid 'SObject row was retrieved via SOQL without querying the requested field' for grandchild

I want to create a component that can accept an SObject without requiring it to have all of the fields displayed on the component. However, when trying to access a grandchild, I am not able to render ...
1
vote
2answers
42 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 ...
1
vote
1answer
32 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
26 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
32 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
30 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
40 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
77 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}" required="...
1
vote
1answer
46 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 List&...
1
vote
1answer
39 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
46 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
26 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 ...