|
我写了一个action:
public static Table getDistinctYear(){ Table table = KSQL.select("select DISTINCT re.year from Re_parameterdata_count re order by re.year", null, "/BudgetManagement/budgetDecomposition/data", null);
table.getProperties().put(Table.PROP_NAME_ROWID, "Re_parameterdata_count");
System.out.print(table);
return table;
}
然后用js调用这个action:
justep.Request.sendBizRequest2({
dataType: "application/json",
action: "getDistinctYear",
callback: function(result) {
if (result.state) {
alert("返回值 -> " + JSON.stringify(result.response));
justep.xbl("data2").loadJson(result.response);
} else {
throw new Error("调用失败!|" + result.response.message);
}
}
});
但是为什么会不行呢?(Ksql是可以检出数据的),一直提示我table转json失败,Table idColumn[Re_parameterdata_count]不存在,这到底是为什么呢?
|
|