BIRT Eclipse-预览结果时没有记录

BIRT Eclipse-预览结果时没有记录,eclipse,birt,maximo,data-integration,Eclipse,Birt,Maximo,Data Integration,我的数据集的打开脚本中包含以下代码: maximoDataSet = MXReportDataSetProvider.create(this.getDataSource().getName(), this.getName()); maximoDataSet.open(); var sqlText = new String(); // Add query to sqlText variable. sqlText = "select workorder.wonum, workorder.

我的数据集的打开脚本中包含以下代码:

    maximoDataSet = MXReportDataSetProvider.create(this.getDataSource().getName(), this.getName());
maximoDataSet.open();

var sqlText = new String();

// Add query to sqlText variable.
sqlText = "select workorder.wonum, workorder.description, workorder.worktype, workorder.location, workorder.pluspcustomer"
+ "from workorder"
// Include the Maximo where clause
//+ " where " + params["where"]
;

maximoDataSet.setQuery(sqlText);
if (!maximoDataSet.fetch())
    return (false);

// Add a line for each output column
// The specific get method should match the data type of the output column.
row["wonum"] = maximoDataSet.getString("wonum");    
row["description"] = maximoDataSet.getString("description");    
row["worktype"] = maximoDataSet.getString("worktype");
row["location"] = maximoDataSet.getString("location");
row["pluspcustomer"] = maximoDataSet.getString("pluspcustomer");

return (true);
我的数据集获取脚本中有以下代码:

    maximoDataSet = MXReportDataSetProvider.create(this.getDataSource().getName(), this.getName());
maximoDataSet.open();

var sqlText = new String();

// Add query to sqlText variable.
sqlText = "select workorder.wonum, workorder.description, workorder.worktype, workorder.location, workorder.pluspcustomer"
+ "from workorder"
// Include the Maximo where clause
//+ " where " + params["where"]
;

maximoDataSet.setQuery(sqlText);
if (!maximoDataSet.fetch())
    return (false);

// Add a line for each output column
// The specific get method should match the data type of the output column.
row["wonum"] = maximoDataSet.getString("wonum");    
row["description"] = maximoDataSet.getString("description");    
row["worktype"] = maximoDataSet.getString("worktype");
row["location"] = maximoDataSet.getString("location");
row["pluspcustomer"] = maximoDataSet.getString("pluspcustomer");

return (true);

但是,当我尝试添加输出行并预览结果时,不会显示任何结果。我已连接到数据库,因为其他报告正在成功连接

没关系,忘了在select语句中为字符串添加空格。您应该下载Maximo BIRT报告开发指南。有一章是关于调试的。这为您提供了很多有用的输出,可以更快地发现这些恼人的事情。