If you are unable to create a new account, please email support@bspsoftware.com

 

Q: repeatable Cognos components (similar logic as Layout component reference)

Started by Martin Rysanek, 09 Jul 2016 10:33:03 AM

Previous topic - Next topic

Martin Rysanek

Is it possible to reuse Cognos components like reports/tables, prompts, filters, etc. defined them in one report and then use them in another report (concept of objects in libraries)? The similar technique is possible with Layout component reference for simple components like Text Items but it does not work for reports or prompts until I put same query + data source (package) in destination report. Using Layout component reference, one can define repeatable header of all reports in "library" like report and then reuse the header in as many report as he needs. When the header is modified in source report, it is automatically propagated to all following reports, where the header is referenced. Can we benefit from similar logic using more complex report objects/components (e.g. tables, prompts, etc.)?

Solution1: manipulation with XML source of reports

Having XML of reports, it is possible to get XML representation of these objects and transfer it to another reports (XML transformation techniques), so not only object definition will be copies by also data source and query definitions (using XML object access or by regular expression).

Solution 2: using SDK to manipulate with object representation in reports

It should be possible to use SDK API to modify report specification and copy/edit/replace definition of report objects.

Both of these approaches seems to be quite complex, are you aware of more simple and for Cognos developers more convenient of reusing cognos objects/components?

Thank you for comments/recommendations

Martin

PS: such a logic is required in RFI by our potential customer