Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only

Cognos SDK - pass connection parameter to retrieve Report Parameters information

  • 1.  Cognos SDK - pass connection parameter to retrieve Report Parameters information

    Posted Wed October 13, 2021 08:52 AM

    Dear Community, 

    I am using Cognos SDK to retrieve all report parameters name and their data types. To retrieve report parameters information I use getParameters() function from Report Service. Sometimes during calling of this method I am requested to select connection, otherwise Report parameters information are not listed. So I figured out that I can pass connection information through ParameterValue list. In our environment we have multiple connections for one data source. For each connection there is set one signon. 

    As a name of passed parameter Value I am using credential:DataSourceName (as it is described in SDK documentation). As a value (which has to be stored in ParmValueItem[]), I use SimpleParmValueItem. As a Display of this SimpleParmValueItem I use search path of a chosen connection. But I do not know what value needs to be set as a use parameter. 

    I have tried to pass credential information for the signon (by using getCredentials() function on DataSourceSignon object), but it did not work. Do you have any ideas how to pass DataSource connection parameter value correctly? 

    I would appreciate any help!

     



    ------------------------------
    Jiri Smrz
    ------------------------------

    #CognosAnalyticswithWatson