At the moment we have no better way than the ones I suggested. Yet - I still think it should be simple to create a generic callback function that you bind with an additional parameter that is kept on your js code, and is used to map the returning query to a specific logic (or to learn the order of sending them).
On Sun, Feb 28, 2010 at 3:34 PM, Kend <[email protected]> wrote: > Thank you for the suggestion! > > An issue does occur though, since the user is allowed to specify the > number of items they wish to compare, each with its own query, I won't > be able to specifically make a unique callback function for each > query. I thought about maybe cycling different callbacks based on your > suggestion but that assumes that there won't be a point where they'd > overlap or cycle back through to one that is still waiting for a > response. I have consulted about changing the server side to supply > something to help and this may help prove my case but until then any > other idea will be greatly appreciated. > > On Feb 27, 11:24 pm, VizGuy <[email protected]> wrote: > > I suggest just calling each query with a different callback function, and > > then you can take it from there. > > Alternatively, if you own the server side that creates the tables, you > may > > add some custom property on the table layer with a serial number, and > refer > > to it when merging them (but this requires the server to know the order, > so > > its not always possible). > > > > Regards, > > VizGuy > > > > > > > > On Sat, Feb 27, 2010 at 3:27 AM, Kend <[email protected]> wrote: > > > Recently I've been attempting to combine multiple queries into one > > > table with Javascript in order to compare the results. There are > > > particular things that need to be modified on the DataTable that is > > > returned so that they are easily distinguishable in a single Google > > > Visualization. Because of the time it takes for a query to complete, > > > the DataTables do not get returned in the same order as they are sent. > > > Is there a way to give each query a parameter that can be accessed > > > from the Response so I can distinguish between DataTables? Any help is > > > greatly appreciated. > > > > > -- > > > 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]<google-visualization-api%[email protected]> > <google-visualization-api%[email protected]<api%[email protected]> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-visualization-api?hl=en.- Hide > quoted text - > > > > - Show quoted text - > > -- > 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]<google-visualization-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- 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.
