【问题标题】:iccube set filter selection from custom widget (JS)iccube 从自定义小部件 (JS) 中设置过滤器选择
【发布时间】:2016-01-15 13:58:55
【问题描述】:

使用 icCube 5.0,我使用谷歌地图创建了一个自定义小部件,我在其上绘制了代表区域的多边形。从这个小部件的 JS 代码中,我也能够更新包含这些区域的树过滤器的选定项目。 因此,用户可以通过树过滤器或地图选择想要的区域。彼此更新。

我使用以下代码来做到这一点:

Chart.prototype.producedEvents = function () {
        return [vizEventType.onSelection];
    };

self.fireEvent(vizEventType.onSelection, new viz.SetSelectionEvent(SelectedZones));

我升级到 5.1.6 版,这不起作用。看起来“新 viz.SetSelectionEvent”不再起作用了。

【问题讨论】:

    标签: javascript iccube iccube-reporting


    【解决方案1】:

    SetSelectionEvent 已移至正确的包。尝试使用:

    new viz.event.SetSelectionEvent(SelectedZones)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-04
      • 2015-10-01
      • 2020-12-07
      • 2018-05-06
      • 2015-07-24
      • 2022-10-24
      相关资源
      最近更新 更多