COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: frankrss on 11 Jun 2019 08:51:05 AM

Title: Javascript "View tabular data"
Post by: frankrss on 11 Jun 2019 08:51:05 AM
Hi, If I want to see the tabular data in a query, it needs several clicks to do it, does anyone know an easier way to run 'View tabular data'? or does somebody know the Javascripts to get the "View tabular data" menu?

Thanks a lot.
Title: Javascript "View tabluar data"
Post by: frankrss on 11 Jun 2019 08:51:22 AM
Hi, If I want to see the tabular data in a query, it needs several clicks to do it, does anyone know an easier way to run 'View tabular data'? or does somebody know the Javascripts to get the "View tabular data" menu?

Thanks a lot.
Title: Re: Javascript "View tabular data"
Post by: CognosPaul on 11 Jun 2019 09:41:20 PM
In 11.1 they finally brought back the one-click "view tabular mode" button. The RS GUI in 11.1 is significantly better than 11.0.
Title: Re: Javascript "View tabular data"
Post by: frankrss on 12 Jun 2019 03:45:25 AM
Thanks for letting know. Do you maybe know the action code (Javascript maybe) behind this View tablular data?
Title: Re: Javascript "View tabular data"
Post by: oscarca on 12 Jun 2019 06:13:31 AM
If you have 11.1, just click on the Query and the View Tabular Data menu will appear.
Title: Re: Javascript "View tabular data"
Post by: frankrss on 12 Jun 2019 06:45:50 AM
I see. Using 11.0 now, no idea when it can update to the new version. I am wondering wether I can get the action code of the view tabular data behaviour, then I can use it in a JavaScript to click on a button wherever I am in the report.
Title: Re: Javascript "View tabular data"
Post by: oscarca on 12 Jun 2019 07:50:27 AM
I can try to see if I find the JavaScript in the installation folder of cognos analytics
Title: Re: Javascript "View tabular data"
Post by: dougp on 12 Jun 2019 10:04:43 AM
If you already have the report open in the Report Authoring tool:

You want to replace that with this?

You want to spend hours or days researching how to make this happen in JavaScript to perform the action in some non-standard way and save 0 clicks?
What am I missing here?
Title: Re: Javascript "View tabular data"
Post by: frankrss on 12 Jun 2019 03:54:15 PM
Hi, thanks for your reply.
When I'm in a query, I first need to click to see which query I'm in by clicking the middle part (if there are more than 1 queries). After I know which query it is, then I right click on the query, then I click on View tabluar data. 3 clicks totally.
I would like to have just one click on a button (maybe on the menu bar) to run View tabluar data. It will save a lot of clicks every day.