【问题标题】:Add a Dashboard to a Visualforce Page将仪表板添加到 Visualforce 页面
【发布时间】:2019-01-18 20:17:57
【问题描述】:

我正在尝试创建一个包含仪表板的公共 Visualforce 页面。 我已经尝试过 iframe 方法,但它让公司 CSP 感到不安。 Surveys__c 是对象。

运行此代码会给我一个完全空白的页面。它不会从仪表板上拉出任何东西。

<apex:page sidebar="true" standardController="Surveys__c">

<dashboard dashboardId="01ZU0000000kWl3MAE" 
      showTitle="true" 
      />

</apex:page>

我想要一个可公开访问的显示交互数据的视觉力页面

【问题讨论】:

    标签: salesforce apex apex-code


    【解决方案1】:

    要将仪表板显示到 visualforce 页面中,您可以使用组件。 您首先需要添加报告并将报告中的图表添加到 Visualforce 页面上。帮助链接 - https://developer.salesforce.com/docs/atlas.enus.pages.meta/pages/pages_compref_analytics_reportChart.htm https://automationchampion.com/tag/analyticsreportchart/

    您甚至可以通过编写 apex 类来自定义动态仪表板并利用不同的视觉力图表 链接-https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_charting.htm https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_charting_example.htm"

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-10
      • 2020-02-20
      • 1970-01-01
      • 2015-11-22
      • 2015-05-08
      • 1970-01-01
      • 2016-08-21
      • 1970-01-01
      相关资源
      最近更新 更多