IBM Support

How to run a report using a parameterised URL

Question & Answer


Question

This document provides the syntax for a URL which can be used to invoke a report and have it displayed in Cognos Viewer

Answer

1. Get the ID of the report by viewing the properties of the report and, in the General tab, select Advanced. The storeID appears on the ID field. Capture this value and place into the StoreID section of the URL

ca11.jpg

2. URLs...

Dispatcher:
http://dispatcher_server:9300/bi/v1/disp?b_action=cognosViewer&run.outputFormat=HTML&run.prompt=true&ui.object=storeID (%22insert_StoreID_here%22)&ui.action=run&cv.header=false&cv.toolbar=false Change the port from 9300 to your configured dispatcher port Gateway... [gateway_server/ibmcognos/cgi-bin/cognosisapi.dll?b_action=cognosViewer&run.outputFormat=HTML&run.prompt=true&ui.object=storeID(%22insert_StoreID_here%22)&ui.action=run&cv.header=false&cv.toolbar=false

[{"Product":{"code":"SSTSF6","label":"Cognos Analytics"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Administration and Configuration v11x","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"11.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg21983556