visualforce

Salesforce object logic question

We have a custom object in Salesforce called "domain" which reflects each website we have built and manage. Our domains use a in house system we sell which has modules which have these attributes: A name, a default price, an expiry date and the actual price the client is paying. We need a way to link these modules to a domain so we could...

force popup to display on the top of the page

I have a popup that gets fired when I hover over a link in an iframe embedded inside the main page. Currently that popup is rendering on the iframe and gets clipped. I want the popup to display on the top and not in the frame. ...

inputField databinding issue with VisualForce

I'm having strange results with a Visualforce page (yes, Salesforce.com is icky, I know). My issue is that I am trying to use the inputField to bind data on a custom sObject, but in my custom controller, it is not recognizing the user input data. Here is the code snippet from the page: <apex:pageBlockSection title="Enter New Fee" ren...

Get the data type, not display type, of a Salesforce.com field from Apex

I need to access the data types of the fields in a Salesforce.com object in order to identify each phone, fax, email, and mail field in an object. I've done this from SFDC web services with the DescribeSObject call but the Apex DescribeFieldResult.getType method only returns the display type of the field, not the actual data type. For ...

How does one show multiple validation errors near matching multiple field locations instead of the default one at a time?

Let's say you have an apex:form with ten apex:inputFields. All these fields are required and there are validation rules for all these fields that don't permit empty fields. Given the error condition state of 10 empty fields, the default behavior of visualforce is that after you click on the submit button, it shows only one of the 10 err...

Workaround for broken Visualforce onchange event?

Since the onchange event is broken for lookup widgets in Salesforce, has anyone come up with a suitable workaround? The thing seems to have been broken for at least 3 releases, which simply boggles the mind. My desired use is to have the change detected so when a field is selected by the user, I populate another list or related objects...

Translating JSP VisualForce

Hello, I'm new to VisualForce, as you will obviously recognize by the following. How would one convert a jsp page into an apex page? I've included some of the most common code that I will have to deal with and need the apex equivalent. I cannot find a decent tutorial or howto and I'm not having too much luck from the VisualForce devel...

How to format a date in VisualForce?

In Salesforce, if I'm binding a date into a VisualForce page, how do I apply custom formatting to it? Example: <apex:page standardController="Contact"> <apex:pageBlock title="Test"> <p>{!contact.Birthdate}</p> </apex:pageBlock> <apex:detail relatedList="false" /> </apex:page> This will output a date in...

VisualForce: convert carriage returns to html line-breaks in a long text field

In Salesforce, if I'm binding a text field into a VisualForce page, whats a good way to convert the carriage returns in the text-field into HTML <br/> tags? e.g. starting from something like this: <apex:page standardController="Case"> <apex:pageBlock title="Test"> <p>{!case.Description}</p> </apex:pageBlock> ...

Visualforce and VPN

I'm looking to integrate my Salesforce implementation with an external database. I know that in most circumstances I would use Visualforce with an Apex controller/extension to access the data, however the external database will require a VPN connection. Since Visualforce and any controllers or extensions are processed server-side, is the...

Visualforce dataTable: is there a way to stop it from rendering cellpadding attribute?

In Visualforce, I'm using an <apex:dataTable> component as follows: <apex:dataTable value="{!Qualifications}" var="qual" styleClass="cv_table" > <!-- etc... --> ... and then I'm using CSS to style the table, via the class name. Trouble is, VisualForce renders HTML like this: <table class="cv_table" id="j_id0:j_id26" border="0" c...

Salesforce: Launch S-Control in a new window from VisualForce

I'm writing a VisualForce page to replace an old legacy S-Control. Originally the Custom S-Control was launched from a Custom Button, and it opened in a new browser window (The S-Control is type HTML, and the Custom Button has Behavior: Display in new window) For certain old records, I want to do a similar thing from VisualForce. So...

events not firing in VisualForce

In the page below,Topic__c is a single-select picklist. My intention is to have this list control which of the input fields is available below. The user selects an option, and the onchange event should fire, and rerender the fields. <apex:inputField value="{!Call_Report__c.Topic__c}" id="topic" > <apex:actionSupport event="...

import data from the objects created in salesforce

Hi All, I have created an app in salesforce platform, i have some primitive records in that, i need to import them in visual force. For example,if we create a record in Account in Salesforce,,, like charles,Jennifer,Tom and all i need to import them in visualforce and do things which i can do in salesforce..please help me out with t...

Dragging and Dropping between Lists when it is populated dynamically

Am a newbie to programming and have seen examples on dragging and dropping items from one list to another list using jQuery. My problem is that my list is populated dynamically and so i cannot predefine the list items. Can anyone provide a solution to this? Am working in Visualforce.Thanks in advance. ...

develope a website using visulaforce

hi folks , I'm trying to develop a website using visual force with apex. but i'm unable., please guide me .. i'm unable to find the docs regarded with the visual force.. help me with the documents and websites regarding them !! please !! ...

Visualforce 'Conversion Error setting value' -- binding problem with selectCheckboxes

I am getting a 'Conversion error setting value' when I try to save a record in my controller extension. The page looks the way I would expect, but when I select one or more checkboxes, it gives my that error. I'm not seeing what the error is here. Thanks for the help. The page: <apex:pageBlockSectionItem > <ap...

Setting the default value of a picklist in a datatable

I am trying to create a dynamic picklist in a datatable. I can set the default value with a single picklist, but not when there are multiple ones. I also need to be able to store the value of whatever it is changed to on any row, which will hopefully be bound to some variable in a list. To accomplish this I created a new field on the ob...

Fill jqgrid with data from visualforce page

I have a visualforce page and I am using jqgrid to display data on this page. The url that the jqgrid points to is a visualforce page(https://test.visual.force.com/apex/GridResults) which outputs only JSON data. This page does not have any header or html information. The problem is that when I run this page, the grid renders with colum...

VisualForce: Pass a parameter to a custom component inside a repeater

I can't figure out why this isn't working: <apex:repeat value="{!MyContacts}" var="c" > <c:ContactRowComponent contactLastName="{!c.LastName}"/> </apex:repeat> (where on the main controller MyContacts returns an array of Contact objects, and on the component contactLastName is defined as a String attribute) This gives me error:...