Getting data from Cognos (scripting)

微笑、不失礼 提交于 2019-12-25 02:25:25

问题


If someone can please tell me how I can get data from cognos automatically. It can be a script in php, or an application that can get a predifined report and save it in an excel file. Cognos can save in an excel file but the adress barr desn`t change (it uses tons of javascript).


回答1:


There are a couple of ways you can programmatically orchestrate activities or retrieve data in Cognos

  1. Cognos exposes a "URL" interface for some of the most common activities. This includes running a report, viewing saved output, opening a report in report studio, etc.
  2. You can use the Cognos SDK. This is the most powerful way to orchestrate things in Cognos. It has a large surface area and a fairly steep learning curve, but if you're willing to invest the time in it, the possibilities are endless
  3. You can use the Cognos Mashup service - this is kind of like "SDK Lite". Its much easier to use but exposes a much smaller surface area. As the name implies, its useful for mashup type scenarios.

Here's an article which describes Cognos Mashup vs. Cognos SDK, and provides some heuristics for when you would choose one over the other :

http://www.motio.com/blog/2010/11/01/cognos-sdk-vs-cognos-mashup.do




回答2:


Talking of an application - COGNOS has such features itself, you can schedule a report and save it in the file system which should meet your requirement.

If you are willing to use PHP then hitting the database directly (as suggested to you already) is a good idea.



来源:https://stackoverflow.com/questions/5177489/getting-data-from-cognos-scripting

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