COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: briancole on 14 May 2014 03:21:58 AM

Title: Can I retrieve data from tooltip on chart and store in Data Item?
Post by: briancole on 14 May 2014 03:21:58 AM
Hi All,

When I hover over an element in my chart, a tooltip appears containing the detail around the element I have selected. Is it possible to extract the information from this tooltip into a Data Item?

I have tried using the following Javascript to extract the data from the chart, but it runs too slowly to be useful:

var oCV = window['oCV'+'_THIS_'].getRV().getCV()
oCV.getSelectionController().setSelectedChartArea(this);
oCV.getSelectionController().getSelectedObjectsJsonContext()[0]['com.ibm.widget.context']['values']['Source ID'])

However, the tooltip will appear almost instantly, which is why I'm wondering if there is a way to capture this instead.

Thanks,
Brian
Title: Re: Can I retrieve data from tooltip on chart and store in Data Item?
Post by: Francis aka khayman on 14 May 2014 09:15:47 PM
how about using a drill-through?