COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => SDK => Topic started by: Rajaggopal on 06 Jun 2009 11:42:19 AM

Title: How to change Report properties
Post by: Rajaggopal on 06 Jun 2009 11:42:19 AM
Hi,
Im just learning SDK so if this is a noobish question then please excuse me... I would like to change some of the report properties using SDK especially the package to which the report is linked and the report name... I grasped that we must use the CMService_port function update(objects,options) inorder to apply any changes we make to objects...

What i would like to know is how to make those changes to a specific report object? In my case how do i change the package to which a report is linked to? Which function of which class i must use to modify these properties? iam using Cognos 8.3 SDK...
Title: Re: How to change Report properties
Post by: Rajaggopal on 07 Jun 2009 08:26:03 PM
Ok so far i have figured out how to change the report name... Can anyone please throw some light on how to change the package to which a report is associated???
Title: Re: How to change Report properties
Post by: xiska on 04 Sep 2009 04:45:27 PM
Hi

Way #1: connect to the Server, get the Reportdefinition as a xml-String parse it, change it ad upload the defition.
Way #2 (never tried it but it is possible): connect to the Server, open the report, change the property and save the report.
You may find an exampe how to extract each column of every query inside a report.

Side effect:
Way #1 will change the unique ID - way #2 not.

CK