Arthur
Arthur

Reputation: 1704

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

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:

Upvotes: 3

Views: 72

Answers (1)

Marc Polizzi
Marc Polizzi

Reputation: 9375

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']

Upvotes: 2

Related Questions