ReportRef reportref = new ReportRef();
try {
XmlViewServiceSoapProxy xmlClient = new XmlViewServiceSoapProxy(); XMLQueryExecutionOptions options = new XMLQueryExecutionOptions();
options.setAsync(false);
String pageSize = filter.getFilter()[1];
options.setMaxRowsPerPage(Integer.parseInt(pageSize));
// options.setType("");
XMLQueryOutputFormat format = XMLQueryOutputFormat.SAWRowsetData; //SAWRowsetData,SAWRowsetSchemaAndData
reportref.setReportPath(path);QueryResults requestData = xmlClient.executeXMLQuery(reportref,format, options, params, sessionId);options.setAsync(false);
非“异步”方式查询,加载分页选项无效,查询比较慢。options.setAsync(true);
“异步”方式查询,分页有效,但有时返回空数据集。
try {
XmlViewServiceSoapProxy xmlClient = new XmlViewServiceSoapProxy(); XMLQueryExecutionOptions options = new XMLQueryExecutionOptions();
options.setAsync(false);
String pageSize = filter.getFilter()[1];
options.setMaxRowsPerPage(Integer.parseInt(pageSize));
// options.setType("");
XMLQueryOutputFormat format = XMLQueryOutputFormat.SAWRowsetData; //SAWRowsetData,SAWRowsetSchemaAndData
reportref.setReportPath(path);QueryResults requestData = xmlClient.executeXMLQuery(reportref,format, options, params, sessionId);options.setAsync(false);
非“异步”方式查询,加载分页选项无效,查询比较慢。options.setAsync(true);
“异步”方式查询,分页有效,但有时返回空数据集。
需要重写onSuccess
@Override
public void onSuccess (Void result)
{
MessageBox.info ("提示", "数据查询结果!", null);
……处理代码
}