Cognos Analytics

Cognos Analytics

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

 View Only

Cognos sample menu item extension

  • 1.  Cognos sample menu item extension

    Posted Mon February 24, 2020 10:34 PM
    Hi Folks,

    I would like to add report path to below code along with the name. If you someone has achieve this please share with me. Thanks in advance.

    define([], function() { 	'use strict';  	var SampleAction = function(){ 		 		  		this.isVisible = function(context, target) { 			return target.options[0].type === 'report'; 		}, 		 		  		this.execute = function(context, target) { 			var info = 'This sample menu item extension opens an alert. 				\nThe alert contains information about the selected report. 				\n\nType: ' + target.options[0].type + '\nName: ' + target.options[0].name 				+ '\nID: ' + target.options[0].id; 			alert(info); 		} 		 		  	};  	return SampleAction;  });

    #CognosAnalyticswithWatson