COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => SDK => Topic started by: ssssss on 22 Feb 2010 12:02:11 AM

Title: How to retrieve the latest version of reports??
Post by: ssssss on 22 Feb 2010 12:02:11 AM
I am using the following PropEnum option for the query

PropEnum props[] = {PropEnum.defaultName,
                     PropEnum.data,
                     PropEnum.defaultName,
                     PropEnum.format};

but it retrieve all report output version from the content store.

Is there any method to retrieve the latest version only ??

Thanks
Title: Re: How to retrieve the latest version of reports??
Post by: lindero on 24 Feb 2010 06:09:21 AM
Hi,

I think, there is a xpath expression called last(). I don't know the syntax exactly but maybe you should follow this trace.

cheers
Title: Re: How to retrieve the latest version of reports??
Post by: ssssss on 25 Feb 2010 08:35:20 PM
thanks a lot. it works.~~!! ;D