cognosLaunch Examples
This section provides examples for performing
specific functions when viewing reports using the CognosLaunch method.
- Viewing saved reports
cognosLaunch ('ui.gateway','http://localhost/ibmcognos/cgi-bin/cognos.cgi','ui. tool','CognosViewer','ui.action','view','ui.object','defaultOutput (/content/folder [@name=\'Samples\']/folder[@name=\'Models\']/package [@name=\'GOSales (analysis)\']/folder [@name=\'Report Studio Report Samples\']/report [@name=\'2005Sales Summary\'])')
- Running live reports
cognosLaunch ('ui.gateway','http://localhost/ibmcognos/cgi-bin/cognos.cgi','ui. tool','CognosViewer','ui.action','run','ui.object','/content/folder [@name=\'Samples\']/folder[@name=\'Models\']/package [@name=\'GO Sales(analysis)\']/folder [@name=\'Report Studio Report Samples\']/report [@name=\'2005Sales Summary\']')
- Viewing reports in different output modes
cognosLaunch ('ui.gateway','http://localhost/ibmcognos/cgi-bin/cognos.cgi','ui. tool','CognosViewer','ui.action','run','ui.object','/content/folder [@name=\'Samples\']/folder [@name=\'Models\']/package [@name=\'GO Sales(analysis)\']/folder [@name=\'Report Studio Report Samples\']/report [@name=\'2005Sales Summary\']','run.outputFormat', 'PDF')