Hi,

We have also added the ability to specify custom properties along with the
data table.
Try using a key named p in the table json, i.e.,
{cols: ..., rows: ..., p: {foo: 'bar'}}
And then using the getTableProperty() method on the datatable, e.g.,
getTableProperty('foo') should return 'bar'.

You can also use custom properties on specific rows, columns or cells.

Hope this helps.

Regards,
      VizBoy.

On Mon, May 11, 2009 at 5:08 PM, Kemal <[email protected]> wrote:

>
> According to the reference, warnings should be an array of objects,
> rather than a single object. Fixed it, I can get the data with
> getDetailedMessage. Though the string seems to be entity encoded.
>
> Still, there should be a better way to do this.
>
> On May 11, 4:53 pm, Kemal <[email protected]> wrote:
> > Hello,
> >
> > What is the best way to pass some data along with the query response?
> > In pre-0.5 I used to set status to "warning" and pass along my data in
> > the message field, but seems like it doesn't work now. Tried setting
> > warnings.reason='other' and warnings.detailed_message to my json-
> > encoded data, but I can't seem to get it with
> > response.getDetailedMessage().
> >
> > Also tried calling another method (just before Query.setResponse in
> > the data) but seems like it's not allowed, all I got was JS errors.
> >
> > Any way to do this?
> >
> > Best regards,
> > Kemal
>
> >
>

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