Hi,
You can filter datatables using dataTable.getFilteredRows(filters)
Look at the documentation for explanation on how to use it
http://code.google.com/apis/visualization/documentation/reference.html#DataTable_getFilteredRows
You will need to create a new datatable, and copy the relevant rows from the
original datatable to the new one.
Note that this only allows for filters that are exact matches. For instance,
you can filter the table by saying you want the value in the second column
to be "foo" but you *cannot* filter be saying that some column
*contains*"foo" or that some numeric column's value is smaller than 7,
etc...
Regards,
VizBoy.
On Wed, Dec 10, 2008 at 11:48 PM, Region 3 DFG <[EMAIL PROTECTED]>wrote:
>
>
> my visualization is fairly basic, it querys a spreadsheet and returns
> all records. in the vis there is a text input box where i would like
> the user to be able to enter text to filter the resulting table. but
> how do i do this after i have already done query.send ?
>
> do i use the FilterDataTableControl ?? it seems a little complex for
> something that sounds simple.
>
>
> http://systemsbiology-visualizations.googlegroups.com/web/FilterDataTableControl.html?gda=WNl7lUwAAAAX7HhFJO7Iy7LL2bku9KuW4cnah4Zdb0EXZuPP6ti1kGG1qiJ7UbTIup-M2XPURDSeehBfVvx_oErqysnOmuxnm8gF_xjOwypP48gCFsJRGA
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
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
-~----------~----~----~----~------~----~------~--~---