API
Version 7.x > API > Dynamic Kentico Generated Reports using API View modes: 
User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/15/2013 11:57:27 AM
   
Dynamic Kentico Generated Reports using API
Has anyone created any dynamic reports using custom table data and the Kentico Report API? The examples and documentation are pretty stratight forward although pretty basic. I'd like some examples of creating a report, passing URL parameters or other macro parameters via the webpart or document back to the actual report.

User avatar
Member
Member
Swainy - 8/16/2013 8:45:47 AM
   
RE:Dynamic Kentico Generated Reports using API
Hi Frogg,

When you say API do you mean through code? Or through CMS Desk/Reporting -> Create new report?

If you're using the CMS Desk/Reporting tab then just create a new report and select a datasource for your report, this is basically a SQL query that you run which you can pass parameters into if you wish.

There are plenty of examples in there, if using the API, why do you need to use the API and not go through CMS Desk/Reporting?

Thanks,

Matt

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/16/2013 10:19:43 AM
   
RE:Dynamic Kentico Generated Reports using API
Matt, Yes I mean API. I've got a client with an internal system I'll be integrating with and they want to display some of the reports from that internal system on their public facing website. We've come up with a plan to run an import process once per day to put compiled data into a custom table.

Seems pretty straight forward really but what I need to do is generate queries for that compiled data (which will be provided) and automatically create the reports from a definition I'll create as there is the potential of being hundreds of them. For instance one location could have 15 reports and if you have 30 locations we're talking 450 reports. So need the reports to be dynamic and if the client decides to import a new report, I can automatically set up the report based on some values specified in a custom definition I'll create.

This is one item I'm working on. The second would be the ability to create one report with a location parameter, then in the Content Tree, pass the document name as a location parameter. I then need each of the reports have a drill down ability as well that cannot be hard coded in the report or the page in the Content Tree. Its a dashboard of sorts.

Creating them via the UI is pretty simple, just want to reduce the amount of work the client has to do on a daily basis. Ideally, I'd like to use the internal systems API and simply place an i-frame or other custom viewer on a page and dynamically display the reports that way but that's an option at the moment.

Brenden

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/26/2013 8:03:52 AM
   
RE:Dynamic Kentico Generated Reports using API
Hi,

What are the exact issues you are facing? What exact API are you using? It is hard to tell any best practices without detailed knowledge of the project. The only thing I can suggest right now is to take a look at the reporting API - classes and methods available to see if any if them will do the things as you need.

Best regards,
Juraj Ondrus