Display Address type field on Visualforce Page

Address is an especial type of fields in Salesforce, which is a structured compound data type, that we can’t use it directly on Visualforce page. And there will occure a compile error like “Unsupported type: common.api.soap.wsdl.Address used in expression: record.BillingAddress”, if we did that.

As the code sample below, we need to use fields BillingStreet, BillingCity, BillingState, BillingPostalCode, BillingCountry, BillingLatitude and BillingLongitude instead of BillingAddress field.

Apex Code

VF Page


Reference : compound fields address

Enjoy it!

Related Post

Auto Create VF-Controller-DTO-DAO-Code SalesforceXyTools Auto Create VF-Controller-DTO-DAO-Code Hello,I am Exia.huang. Today I will show you how to create VisualForce/Apex quickly by using SalesforceXyTools. There are 5 steps. Find the menu below. ->-> Select your Sobject. I will select Blog__c. Select Custom Fields...
Rapid development tools for Salesforce.(Salesforce... SalesforceXyTools SalesforceXyTools for Sublime Text is Rapid development tools for Salesforce Development. Auto Create Apex Test Class Code, Auto Create Test Data For Apex Test Class. SFDC Dataviewer, SFDC Online Dataviewer. SObject Viewer, SObject Description, Export SOjbect Fields to Excel ...
Batch Apex running mode (parallel and series) and ... In my early post, I’d shared about how to write a Schedulable Batch Apex in Salesforce, and I’ll show you how transactions run in batch Apex and how to maintain their state across these transactions in this post. Batch Apex running mode (parallel / series) As we know, each execution of a batch...
Using Custom Metadata Types and Custom Settings in... Custom Metadata is one of the new features that released at Summer'15 of Salesforce, which is customizable, deployable, packageable, and upgradeable application metadata, and it supports the following custom field types.   • Checkbox   • Date   • Date and Time  ...