Search code examples
listreporticcube

IcCube - List of Reports


In my system I would like to set up a Table of Contents for my users, meaning a list of all the reports they have access to. In /icCube/doc/ic3report I can see the structure, but I can nowhere find the files on my system.

So is it possible, to retrieve a list of reports somehow?


Solution

  • The icCube Web Reporting framework is based on a Javascript visualization library (www) that contains several requests; one of this request allows for retrieving the list of reports accessible by the user of the request:

    getReportNames
    

    You can modify an example to use this request and use a debugger to inspect the resulting table. Or if you have an instance of ic3.Reporting (see www) you can use the function:

    ic3.Reporting.getAllReportNames( callback )
    

    which is a shortcut of the underlying request usage. You can see a live example using this URL.

    Hope that helps.