|
楼主 |
发表于 2017-4-7 17:44:23
|
显示全部楼层
本帖最后由 无可奈何花落去 于 2017-4-7 17:45 编辑
提示 result.response.rows 未定义
这是我的后台 Action 写法:
public static Table selectYLCInfo(String fYLCSQBH){
String mssql = "select fSQRXM,fBSQRXM,fSYHLY from JZ_XX where fZCBH ='"+ fYLCSQBH+"'";
System.out.println(mssql);
HashMap<String, String> sqlMap = new HashMap<String, String>();
sqlMap.put(DatabaseProduct.MSSQL.name(), mssql);
return SQL.select(sqlMap, null, "/LandManagerSys/LandDAM/data");
}
前台的接收方法是:
var data1 =justep.xbl("data1");
justep.Request.sendBizRequest2({
datatype : "json",
action : "selectYLCInfo",
parameters : param,
callback : function(result) {
if (result.state) {
data1.setvalue("YSQR",result.response.rows[0].fSQRXM.value);
} else {
throw new Error("调用失败" + result.response.message);
}
}
});
|
|