The row in the selection refers to the row in the DataView used to draw the table; you need to translate that row back into the original DataTable. Use the same method as in this<https://groups.google.com/d/msg/google-visualization-api/QJ-wGPincv8/PRJu539BDzwJ>answer, except you get the row from #getSelection instead of the event property.
Incidentally, if you are just fetching data, you can use the view rather than translating back to the original DataTable, as long as the view has the columns you need. On Monday, August 13, 2012 5:12:15 PM UTC-4, byteME wrote: > > I have just tried it in my actual code.. The getSelection() method works > but when i filter the table its rows changes but the selection remains same > with reference to the dataTable. so when i select a row after filtering I > cannot get the right row's data.. > > On Monday, 13 August 2012 21:10:08 UTC+1, byteME wrote: >> >> How can I use a getSelection() method to interact with the table in a >> dashboard.. >> Any suggestions is very much appreciated.. thanx.. >> >> -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/IWfYm8_ObkcJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
