I've hit a wall trying to change the values of cells in a DataTable in
a Java program.

In my application I have an existing DataTable already populated with
data. I need to add a column to it. That's easy enough, just all
addColumn(). Now I need to put values in the cells of the column I
just added. Hmmm, the JavaScript setValue() method isn't available in
Java land. OK, I'll get the cell via getCell() and then try
setFormattedValue(). No joy, cell value doesn't change. That seems
like the only option.

So, is there some magic I'm missing or is the only option the brute
force route: create a brand new table with the existing columns plus
my new one and then copying the rows, with my new values appended, to
the new table. That seems wasteful at best and terribly slow at worst.

Thanks ... WkH

-- 
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.

Reply via email to