Is it possible to re-use schema specific reports on different schemas in iccube?

荒凉一梦 提交于 2019-12-12 15:16:38

问题


I have created standard dashboards connected to a single schema.

Now I would like to re-use the same dashboards definition on different schemas. These schemas are all equivalent (same dimensions, measures, but different client data).

Is this possible?

I think of the process sequence:

  • user logs on, dashboards connects to schema defined in the dashboard
  • if the user has no access to this schema, connect to the schema the user has access to
  • allow a user to select from the schemas to which he/she is authorized

回答1:


You can do that when opening a report using the javascript API. Somehow, you would have an instance of ic3.Reporting.

var ic3reporting = new ic3.Reporting();

Then before opening the report you can register an event to listen when its definition is received:

ic3reporting.bind(vizEventType.onReportJSON, function(ic3report){   
  ic3report.schemaName("..."); 
});

In the callback function you get the opportunity to change the name of the schema being used by this report.

[edit: vizEventType.onReportJSON is actually the string 'ic3reportJSON']



来源:https://stackoverflow.com/questions/28608244/is-it-possible-to-re-use-schema-specific-reports-on-different-schemas-in-iccube

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!