You need to reference the data as seen by the table by calling the 
ChartWrapper's #getDataTable method:

var dt = myTable.getDataTable();
var selection = myTable.getChart().getSelection();
for (var i = 0; i < selection.length; i++) {
    var value = dt.getValue(selection[i].row, 0); // get value in column 0 
of the selected row
}

On Tuesday, July 15, 2014 5:09:27 AM UTC-4, frankst...@gmail.com wrote:
>
> Hi,
>
> I have a dashboard with a table (as a chart wrapper)  a categoryfilter (as 
> a controlwrapper).
>
> The dashboard works fine.
>
> I would like to open up a page when the user selects a row to expand the 
> selection into another page.
>
> However as per the API the getSelection() method returns the row number of 
> selection no matter what sorting paging or in my case filtering has been 
> done. So when the user selects row 2 of a filtered table it will bring back 
> row 2 of the original unsorted and unfiltered table.
>
> Any ideas how to get around this? 
>
> Thanks
>
> Frankie
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to