Visualforce is Salesforce.com's HTML template technology, allowing dynamic creation of web pages (as well as other files) utilising Apex logic and SOQL queries to replace merge fields with content.

learn more… | top users | synonyms (2)

0
votes
2answers
9 views

display object data in tabular form in visual force

i have an object (id, name, isvalid(default 0)) , there is 10 record in this object i am trying to display all records (name) in visualforce page , in apex class i got all the records. but facing ...
0
votes
2answers
16 views

Use controller extension attribute in Javascript

I am trying to get the id of contacts from accounts using Javascript.But seems like something is not right in the code, which has to alert the ids one by one. Here is my visualforce and extension ...
0
votes
1answer
14 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
2answers
27 views

Getting Issues while creating User

I am trying to create an User but I am getting error as follows: 18:46:26:307 FATAL_ERROR System.DmlException: Insert failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, portal ...
1
vote
1answer
24 views

Compare two fields

I have 2 object A,B A has 2 field id, name B has 3 field id, name, ismatching(default 0) Scenario is >> if I insert value in B , it should be compare B.name to A.name , if match is true then ...
1
vote
1answer
21 views

writing test class for trigger failing due to second class

i have a trigger on quote with all events.written two classes for this trigger 1.after quote creation product is automatically creating--first class. 2.before quote creation i need to populate contact ...
0
votes
1answer
14 views

REQUIRED_FIELD_MISSING error in OpportunityContactRole trigger test

i have written before insert trigger on quote,when inserting a quote i want to populate contact detail like name,email,phone,fax from opportunity the contact which is acting as a contactroles related ...
2
votes
2answers
14 views

apex:inputHidden will not rerender but apex:outputpanel does?

On my page I have an apex:inputhidden with a value linking to the APEX controller. It looks like this: <apex:inputhidden value="{!conferenceId}" id="hiddenConference" /> Then I have an ...
1
vote
1answer
8 views

Show Past Cases on the Case Page Layout?

I'd like to show "Past Logged Cases" on the Case Console for Service Cloud. This would be Cases logged by the Case.Contact. Anyone have a simple idea how to do this, or are we talking ...
3
votes
1answer
19 views

Can't get Custom Object ParentID for Attachment save

I'm uploading an attachment via "sforce" following the example here: Upload attachment in VisualForce without reloading the whole page However I'm having problems getting a value for ParentId. I ...
0
votes
1answer
14 views

Enter Key Clearing All Form Fields. How To Detect and Block [on hold]

I have a number of visualforce forms. When I hit the enter key while filling out the forms it clears out all form fields. Is there a way I can globally detect if the enter key has been clicked and ...
1
vote
2answers
29 views

How to pass multiple value to url parameter

I am creating a custom button on a custom object A. The custom object A has multiple accounts related to it. Custom object A has a lookup relation to Account. In the button logic I am using Button or ...
1
vote
1answer
21 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 ...
0
votes
0answers
14 views

Ability to preview the record before `SAVE` [on hold]

How can I add the functionality that user have ability to preview the record before SAVEs? Any ideas? I'm not sure if the Salesforce provide out of the box standard functionality instead of me ...
0
votes
0answers
10 views

IOS devices use -webkit-overflow-scrolling:touch with fixed header re-appear after finish scrolling

I have a strange issue right now. I have a page with fixed header and my body with html,body{ overflow: auto; -webkit-overflow-scrolling:touch;} body{ position:absolute; left:0; right:0; top:0; ...
4
votes
0answers
17 views

Is there any way to revoke “refresh token” for a connected app automatically as soon user changes password?

We have a requirement for revoking refresh token if a user changes password. In our use-case a business user may be logged into multiple devices with the same user id and are using Hybrid App based on ...
-3
votes
0answers
14 views

How to convert Html Template To Pdf [on hold]

public class ResendMailDealsheet { public ResendMailDealsheet() {} public ResendMailDealsheet(ApexPages.StandardController controller) {} public string getSendmail() { integer i; ...
0
votes
1answer
15 views

Analytics Report chart is not getting loaded in some Profiles

I am struggling with an issue in a VF page. i have analytics report chart which is displaying some data in VF page. on clicking the chart, the page is redirectd to the particular report and data is ...
0
votes
1answer
24 views

visualforce tab [on hold]

The Head of Operations tells you that he wants to make things easier for city managers to be able to track sales representatives' performances and stock allocation. In order to do this, he says that ...
1
vote
2answers
31 views

Connect PageblockTable and Plain HTML Table in visual force using sortable in Jquery

Im Trying to connect pageblocktable and plain HTML table in visualforce page but I'm not able to do. When Im Dragging element from table 1 to table 3. element is not being appended to table 3. Can ...
0
votes
0answers
23 views

How to take out an account from one list and push it to another

people. I have to change a custom option field of Account with drag and drop. So I made 3 account list(for level1, level2 and level3) bound to 3 tables in the visualforce and make it draggable and ...
1
vote
2answers
29 views

Trouble passing variable from Apex to VF Page

I'm trying to pass a simple string to a vf page, but can't seem to. What am I doing wrong? APEX public class ControllerJSGeo{ public String pId; public String testString {get;set;} ...
0
votes
0answers
26 views

Visualforce Line chart not populating

I need to plot values vs week. I don't see any errors. But just the data is not populated ? public class ChartController { // Return a list of data points for a chart public List<Data> ...
0
votes
1answer
39 views

Metadata API Deployment Failure

I am trying to deploy Weblink from Task Object to the Activity object , but it says "no WebLink found ObjectName.FieldName. Here is the Activity.object XML: <?xml version="1.0" ...
3
votes
1answer
39 views

Overriding standard object to Visualforce page

I'm trying to override the standard page to a custom visualforce page and as you see in the screen shot I do not see the page that I have created, what I'm missing? ...
1
vote
0answers
12 views

Adding a custom Visualforce page in a managed package to the customer community

I want to setup a customer community org that uses custom Visualforce pages that were installed as part of a managed package. I have configured the customer community to have access to those pages and ...
1
vote
1answer
21 views

How to use Custom Links in VFP or Controller

I have created Custom Linksso that I can use either in Visualforce page or apex controller but I'm trying to figure out how to call this custom links?
1
vote
1answer
31 views

Why is the readOnly Visualforce page attribute not working?

Can anyone explain to me why the readOnly="true" attribute is not working as expected? I'm attempting to display a list of 5,000 records using an <apex:repeat> tag, and I'm receiving an error: ...
2
votes
1answer
16 views

Is there way to add ahref along with Title

Is that possible to have a href inside the apex:pageBlock title? I'm trying to do something like this but its not working: <apex:pageBlock title="Upload Link - {!'<a ...
0
votes
1answer
12 views

How do I resize multiple canvas apps independently of each other?

I have two canvas apps on the contacts page, but when I resize one app via Sfdc.canvas.client.resize(), the other app resizes as well. My first app is resizing every 500ms to the current contentHeight ...
0
votes
1answer
19 views

Controller method doesn't rerender pageBlock

My aim is showing the pageBlock named iconGallery, when the user click on the commandLink "Show Gallery". If I put the "loadImage" method's code inside Constructor, everything goes perfect. So I ...
-5
votes
0answers
23 views

Unable to create Set Test class of custom setting? [duplicate]

My Apex Class.. public class MaxmindSettings { public String APIKey{get;set;} public String firstRating{get;set;} public String secondRating{get;set;} public String ...
0
votes
1answer
27 views

record visible according to the status

When the pet’s status is “New” or “Evaluating”, the record must only be visible to the veterinarian and the assigned director. Once the assigned director has set a pet’s status to “Available”, that ...
0
votes
1answer
27 views

how to create Test class of custom setting?

i am new to apex... My Apex Class.. public class MaxmindSettings { public String APIKey{get;set;} public String firstRating{get;set;} public String secondRating{get;set;} public ...
1
vote
2answers
26 views

Need to restrict <apex:inputFile> extension using jquery

I am working on Visualforce Site. I am using to attach the attachment in contact. I want to restrict the user to attach only image, PDF or .jpg file at client side. How can I do this using jquery? ...
1
vote
2answers
31 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
23 views

Visualforce URLFOR parameter binding

I'm trying to override the new case functionality to prepopulate certain fields depending on which recordtype the user selects. This is my visualforce action page: <apex:page ...
0
votes
0answers
19 views

Pull Account Information Into Case Using VF Controller

I am overriding my New Case button with a VF page. I am trying to pre-populate fields on cases created with a certain record type with values from the Account, but I'm not sure how to pull them into ...
1
vote
1answer
30 views

Pageblocktable to be rendered as table in PDF

I have a VF code below where I am trying to display the related list of an object using and command. I am rendering this page as PDF , doing that in my PDF I am unable to see the content in a ...
1
vote
0answers
14 views

Retrieve Dashboard Running User in query

I built this visualforce page and controller that does a query for records with the current user and then displays the results on a visualforce chart. We went to production and the users said no we ...
2
votes
2answers
82 views

Retrieving an image from rich text field?

Have a rich text field called - snapshot__c which has image in it. This field is inside custom object called obj__c. obj__c has another field case__c using lookup in it. On a Vf page, I'm selecting ...
4
votes
1answer
72 views

Visualforce Private vs Public Getter/Setter Syntax/Structure & Order of Execution

There are already many threads on the confusion with Visualforce's Lifecycle/Execution Order, as their should be because its pretty confusing the more complicated your applications becomes. With that ...
3
votes
1answer
15 views

Difficulty displaying an Input with Icon using Lightning Design System

I'm working on creating a Visualforce page that uses the Lightning Design System. As part of the VF page I'm trying to include an text input field which the user will use to input search terms. I ...
1
vote
0answers
17 views

Add comma on input text that reference a decimal value

I have an inner class that has decimal attribute. This attribute is referenced by an input:text field on visual force. My question is how can I add thousand comma separation on this input text? e.g ...
2
votes
1answer
11 views

created vf page used pageblock table in it also used custom controller but unable to display the list of records

this is the code for vf: <apex:page Controller="UpdatingTheRecord"> <apex:form > <apex:pageBlock Id="GG"> <apex:pageBlockTable value="{!mycar}" var="ca"> ...
0
votes
3answers
23 views

Visualforce/Google Chart: Get report ID on event

We have a visualforce/googlechart element on our page that our users would like to be able to click on a bar and run a specific report. However, there are 12 bars on the graph, and each would run a ...
1
vote
0answers
10 views

Is it possible to get all groups for a user - from the API?

Is it possible to get all groups for a user - from the API? In the Force.com Deleloper Console, with the query SELECT Id, GroupId, UserOrGroupId FROM GroupMember, I get only one result row I would ...
-1
votes
1answer
30 views

Refresh a pageBlockTable inside the tab using button

My visual page having a pageBlockTable inside a tab. Also there is a button inside the same tab named Refresh. I need to refresh the pageBlockTable using the refresh button. The following code is not ...
0
votes
1answer
27 views

How to compare custom label value in IF condition on VF page?

I have a requirement to compare a variable with a custom label to show or hide section on VF page. Eg: <apex:inputText value="{!myVariable1}" rendered="{!IF(myVariable2 == ...
0
votes
2answers
32 views

System.QueryException: List has no rows for assignment to SObject..unable to resolve it

i am new to apex... My Apex Class.. public class StudentLists { public List<Student__c> stuList{get;set;} public String name1 {get;set;} public String eid {get;set;} Public ...