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);
“异步”方式查询,分页有效,但有时返回空数据集。

解决方案 »

  1.   

    不知道我说得对不对,权当抛砖了。异步查询,结果值的返回时间是不可期待的。
    需要重写onSuccess
    @Override
                public void onSuccess (Void result)
                {
                    MessageBox.info ("提示", "数据查询结果!", null);
                    ……处理代码
                }