|
var ids = this.comp("grid1").getCheckeds();
var params = new biz.Request.ActionParam();
params.setList("ids", JSON.stringify(ids));
var res = biz.Request.sendBizRequest({
"context" : this.getContext(),
"dataType" : "json",
"directExecute" : true,
"parameters" : params,
"action" : "deleteDocs",
"callback" : function(callbackData) {
callbackData.ignoreError = false;
if (callbackData.reponse) {
alert("成功")
}
}
});
deleteDocs在后台Java那边的声明是 public static Boolean deleteDocs(List ids){
报错:红色那边 ,List传参如何修改?
this.param[t].toJson is not a function
[url=]隐藏详细[/url]
TypeError: this.param[t].toJson is not a function at _var_._ActionParam.toJson (http://localhost:8080/x5/UI2/v_5e81e1d67d4846338eb95e939eeb1cc1l_zh_CNs_desktopd_pc/system/biz.common.min.js:12:24422) at _var_._ActionParam.to (http://localhost:8080/x5/UI2/v_5e81e1d67d4846338eb95e939eeb1cc1l_zh_CNs_desktopd_pc/system/biz.common.min.js:12:24496) at Object.Request.createBizParam (http://localhost:8080/x5/UI2/v_5e81e1d67d4846338eb95e939eeb1cc1l_zh_CNs_desktopd_pc/system/biz.common.min.js:12:14513) at Object.$var._sendBizRequest (eval at __actionFinish (http://localhost:8080/x5/UI2/v_5e81e1d67d4846338eb95e939eeb1cc1l_zh_CNs_desktopd_pc/system/biz.common.min.js:12:16366), <anonymous>:1:135) at Object.Request.sendBizRequest (http://localhost:8080/x5/UI2/v_5e81e1d67d4846338eb95e939eeb1cc1l_zh_CNs_desktopd_pc/system/biz.common.min.js:12:15521) at n.Model.button6Click (http://localhost:8080/x5/UI2/v_8d79252b35ff4f069de640c636e16789l_zh_CNs_desktopd_pc/ERP/BUILDCO/publication/process/BuildingPublication/mainActivity.js:93:26) at n.fire (http://localhost:8080/x5/UI2/v_e164ad9e4b6a4d16b985a93f390c241el_zh_CNs_desktopd_pc/system/core.min.js:65:234367) at n.fireEvent (http://localhost:8080/x5/UI2/v_e164ad9e4b6a4d16b985a93f390c241el_zh_CNs_desktopd_pc/system/core.min.js:65:235531) at n.callParent (http://localhost:8080/x5/UI2/v_e164ad9e4b6a4d16b985a93f390c241el_zh_CNs_desktopd_pc/system/core.min.js:65:231806) at n.fireEvent (http://localhost:8080/x5/UI2/v_390167c1fef84fd1a9fb9f47d01f4e2fl_zh_CNs_desktopd_pc/system/common.min.js:7:3704)
|
|