我如何找到Power BI数据选定事件的定义

问题描述 投票:0回答:1

我正在使用嵌入在AngularJS应用程序中的Power BI(是的,我知道它很旧)。我正在使用以下内容触发事件:

      report.on("dataSelected", function (event) {
        console.log(scope.renderedReport);
        console.log(event.detail);
      });

我可以看到“详细信息”对象的各种结构。但是,我很难在任何地方都能真正显示出所有子对象的外观。我需要将该信息保存到数据库中,并且尝试为详细信息对象以及随后的SQL表构建C#对象。如果有人可以指出该event.detail对象的定义方向,我将不胜感激。

javascript powerbi-embedded
1个回答
1
投票

根据official wiki,它是:

dataSelected
    report: Report
    page: Page
    visual: IVisual
    filters: IFilter[]
    dataPoints: (Array of data points)
    each point has:
        1) **identity** array
        2) **values** array

您可能也要查看此演示

https://microsoft.github.io/PowerBI-JavaScript/demo/dataselection.html

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.