COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => SDK => Topic started by: hardstep on 02 Oct 2009 03:58:39 PM

Title: replace string values inside of report specs ?
Post by: hardstep on 02 Oct 2009 03:58:39 PM
Hi all

Completely new to the SDK - but does anyone know of a way or an SDK app that will search the content store for report specs containing a specific string value (e.g a hardcoded URL inside my report of
192.168.0.1/cognos8) and replace with a new string value.

Any advice on how to do this would be great !

Cheers
Nick
Title: Re: replace string values inside of report specs ?
Post by: lindero on 12 Oct 2009 05:19:03 AM
I think you cannot search the ContentStore for report specs directly. First you must retreive the report objects from Content Store with their xml specification and then you can search within the objekt property specification for your exact string.

hope this helps
Title: Re: replace string values inside of report specs ?
Post by: newmans_99 on 12 Oct 2009 07:29:15 AM
This should do it:
http://www-01.ibm.com/support/docview.wss?rs=0&uid=swg24021248

Cognos Customer Center > Diagnostic Tools > Report Spec Updater

This utility allows you do search and replace within your reports in the Content Store.