您位於此處:
Visualforce 區域首頁元件
使用 Visualforce 區域首頁元件,將動態內容新增至您的首頁。例如,您可以顯示合作夥伴應用程式中的內容,將圖表與報告和顯示面板 REST API 搭配顯示,或將畫布應用程式新增至首頁。
使用 Visualforce 區域首頁元件,將動態內容新增至您的首頁。例如,您可以顯示合作夥伴應用程式中的內容,將圖表與報告和顯示面板 REST API 搭配顯示,或將畫布應用程式新增至首頁。
| 提供版本:Salesforce Classic |
| 提供版本:所有版本 |
您為元件選擇的 Visualforce 頁面可以使用標準或自訂控制項。您可以將 JavaScript 包括在 Visualforce 頁面中,但因為元件呈現在首頁版面配置上的 iframe 中,所以 JavaScript 無法與包含該元件的頁面互動。
如果您的 Visualforce 區域首頁元件顯示在側列中,您可以使用 Visualforce 標記中的 $CurrentPage 全域變數,動態取得元件顯示所在頁面的記錄識別碼和最上層 URL。
使用 $CurrentPage,您可以透過指定 parameters 屬性來存取頁面的查詢字串參數,之後您可以存取每個個別參數:
$CurrentPage.parameters.parameter_name記錄識別碼和最上層頁面 URL 的參數分別為 id 和 sfdcIFrameOrigin。如需詳細資訊,請參閱《Visualforce 開發人員指南》中的 取得查詢字串參數。

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.