Visualforceページに住所タイプ項目の表示
- Apr
- 06
- Posted by Lin
- Posted in APEX, Salesforce, Visualforce
AddressはSalesforceの1つ特殊な項目タイプで、構造化された複合データ型であり、直接Visualforceページに使用することができません。
そのまま使用すると、”Unsupported type: common.api.soap.wsdl.Address used in expression: record.BillingAddress”のようなコンパイルエラーを発生します。
次のサンプルコードのように、BillingAddress項目の代わりに、BillingStreet, BillingCity, BillingState, BillingPostalCode, BillingCountry, BillingLatitude と BillingLongitude項目でアクセスできます。
参照 : 住所複合項目
Enjoy it!
そのまま使用すると、”Unsupported type: common.api.soap.wsdl.Address used in expression: record.BillingAddress”のようなコンパイルエラーを発生します。
次のサンプルコードのように、BillingAddress項目の代わりに、BillingStreet, BillingCity, BillingState, BillingPostalCode, BillingCountry, BillingLatitude と BillingLongitude項目でアクセスできます。
Apex Code
VF Page
参照 : 住所複合項目
Enjoy it!
最近の投稿
- Salesforce DevTools利用者が10,000名達成!ありがとう!
- Lightning ComponentのApex側とデータ通信にPromiseを活用しよう
- Pipeline for Salesforce – Salesforceメタデータ移行負荷、移行ミスを最小限に
- Salesforce Smart Importer – 1ドラッグでExcel、CSVをSalesforceにインポート、ClassicとLightning両方利用可能!
- Visual Studio CodeでSalesforce DXの開発環境を構築
Top Posts
- Sublime Text 3でSalesforceの爆速開発環境を構築 - 101.8K views
- Salesforce DevTools – Saleforce.com開発者向け強力なChrome拡張機能 - 97.6K views
- Salesforce一括編集 (Chrome拡張機能) -標準リストビューで一括新規, 更新, コピー, 削除, ClassicとLightning両方使える! - 63.1K views
- Date format && DateTime format - 55.2K views
- スケージュール可能なApex一括処理バッチの実装 - 49.6K views
カテゴリー
- APEX
- アプリ
- Custom Label
- Custom Metadata
- Custom Setting
- Design & UI
- 交流会
- Heroku
- iOS & Object-c
- Lightnint Component
- Linux & Mac OS
- Metadata API
- Node.js
- Open Source
- Other
- PHP Framework
- Release Notes
- REST API
- Salesforce
- Salesforce DX
- SOQL
- Tesforce
- Tooling API
- Unit Tests
- Validation Rule
- Visualforce
- WordPress