You need to sign in to do that
Don't have an account?
khushbu dubey
is it correct??
<apex:page standardController="account" recordSetVar="acc"> <apex:pageBlock title="list views"> <apex:pageBlockTable value="{!acc}" var="a6"> <apex:column value="{!a6.industry}"/> <apex:column value="{!a6.annualrevenue}"/> <apex:column value="{!a6.website}"/> <apex:column value="{!a6.fax}"/> <apex:column value="{!a6.billingaddress}"/> <apex:column value="{!a6.shippingaddress}"/> <apex:column value="{!a6.accountowner}"/> <apex:column value="{!a6.parentaccount}"/> <apex:column value="{!a6.tickersymbol}"/> </apex:pageBlockTable> </apex:pageBlock> </apex:page>
BillingAddress and MailingAddress are not actual fields on Account or Contact objects. These fields are combination of street, city, state, country and postalcode fields. To access address field values in code you will have to refer each of these fields separately in vf page.
<apex:column value="{!a6.BillingCountry}"/>
<apex:column value="{!a6.BillingCity}"/>
---
---
and so on and same will be applied for Mailing and Shipping addresses as well.
Billing address is not supported field in account object. Find the below code
Regards,
Sai Krishna Tavva
1) https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_account.htm
Please try below code. i hope that will help you
I see you are facing same issue in multipe post due to invalid field name. It better Search Object API field Name from Google.
How can I find the API name of a field?
https://help.salesforce.com/apex/HTViewSolution?id=000007594&language=en_US
To find a field's API name for custom objects, please follow these steps:
1. Go to Setup | Create | Objects | <Object> | Fields
2. And check for "API name" column name value
Let us know if this will help you
Thanks
Amit Chaudhary
1) Access fields individually for both billing, shipping addresses like below,
2) You can give concatinated string in Value also,