COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => SDK => Topic started by: jayitrisaha on 17 Oct 2019 01:22:12 PM

Title: Cognos SDK
Post by: jayitrisaha on 17 Oct 2019 01:22:12 PM
Hi.... I am trying to find the user name/ID who last modified a report or package using Cognos SDK.
Can anyone advise how to get this information?
Title: Re: Cognos SDK
Post by: Andrei I on 11 Nov 2019 09:21:10 AM
I assume you could get modificationTime  from a baseClass.

PropEnum  props[]  =
   new  PropEnum[]  {PropEnum.searchPath,  PropEnum.defaultName,  PropEnum.modificationTime ,   PropEnum.userName};

Look at the links below

https://www.ibm.com/support/knowledgecenter/en/SSEP7J_11.0.0/com.ibm.swg.ba.cognos.ca_dg_sdk.doc/r_d15e1288166.html#bibus_propEnum
(https://www.ibm.com/support/knowledgecenter/en/SSEP7J_11.0.0/com.ibm.swg.ba.cognos.ca_dg_sdk.doc/r_d15e1288166.html#bibus_propEnum)

https://www.ibm.com/support/knowledgecenter/en/SSEP7J_11.0.0/com.ibm.swg.ba.cognos.ca_dg_sdk.doc/i_d15e243350.html#bi_bus_api_content_management_querying_content_store_Example__Querying_the_Content_Store_in_Java (https://www.ibm.com/support/knowledgecenter/en/SSEP7J_11.0.0/com.ibm.swg.ba.cognos.ca_dg_sdk.doc/i_d15e243350.html#bi_bus_api_content_management_querying_content_store_Example__Querying_the_Content_Store_in_Java)