Monday, September 20, 2010

com.google.gwt.visualization.client.Query

Hellow All,

My question is:

With the code below I only receive on the server side a parameter
(reqId:0) instead of (tqx=reqId:123;reporttype:8;param:pid;pid:
101506368). Is this behaviour intentional or is a kind of a bug?

I tried using: RequestBuilder builder = new
RequestBuilder(RequestBuilder.GET, dataUrl) with the same string and
it worked as expected.

Thanks for your time.

>>>>> Code <<<<<

public class Google_Visialization_Trial implements EntryPoint {
public void onModuleLoadTable() {
Runnable onLoadCallback = new Runnable() {
public void run() {
final Panel panel = RootPanel.get();
String dataUrl = "https://sample.server/myreports/
getReportDatasource.asp?tqx=reqId:123;reporttype:8;param:pid;pid
:
101506368";

Query query = Query.create(URL.encode(dataUrl));

query.send(new Callback() {
public void onResponse(QueryResponse response) {
if (response.isError()) {
Window.alert(response.getMessage());
} else {
DataTable data = response.getDataTable();

Options options = createOptions();

panel.add(new Table(data, options));
}
}
});

}
};

VisualizationUtils.loadVisualizationApi(onLoadCallback,
Table.PACKAGE);
}

private Options createOptions() {
Options options = Options.create();
return options;
}
}

>>>>> End of code <<<<<<

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment