起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6579|回复: 2

[结贴] newData报错

[复制链接]

407

主题

926

帖子

2039

积分

金牌会员

Rank: 6Rank: 6

积分
2039
QQ
发表于 2021-3-8 15:52:42 | 显示全部楼层 |阅读模式
var li_default = []
                for (var i = 0; i < table.rows.length; i++) {//table是后台sql返回的对象
                    debugger;
                    var obj = {};
                    for (var j = 0; j < arr_detail_fields.length; j++) {
                        obj[arr_detail_fields[j]] = table.rows[i][arr_detail_fields[j].toUpperCase()].value;
                    }
                    li_default.push(obj);
                }

                detailData.newData({
                    "defaultVal


报错:
biz.common.min.js:12 Uncaught Error: __justepServerErrorStart__{"message":"请求错误编码:0, 新增数据失败! ","reason":"","code":"","stack":"","messages":[],"url":"http://localhost:8087/BusinessServer/business-action","param":{"contentType":"json","accept":"application/json","process":"/ERP/TRC/TrcISOC/process/changeZhuan/changeZhuanProcess","activity":"mainActivity","actionFlag":"__action_0__","executor":"","executeContext":"","action":"createTRC_ISOCHUMAction","parameters":{"table":{"@type":"table","rows":[],"userdata":{"idColumnDefine":"TRC_ISOCHUM","idColumnName":"TRC_ISOCHUM","idColumnType":"String","model":"/ERP/TRC/TrcISOC/data","relationAlias":"IsocID,SGONGHAO,beforeID,beforeIoscID,earl,earlDept,earlDeptID,earlID,fActivity,fActivityName,fCreatdTime,fCreateDeptCode,fCreateDeptID,fCreateDeptName,fCreatePersonCode,fCreatePersonFID,fCreatePersonID,fCreatePersonName,fProcessID,fTaskID,fUpdateTime,humType,job,major,processStatus,version","relationTypes":"String,String,String,String,String,String,String,String,String,String,DateTime,String,String,String,String,String,String,String,String,String,DateTime,String,String,String,Integer,Integer","relations":"TRC_ISOCHUM.IsocID,TRC_ISOCHUM.SGONGHAO,TRC_ISOCHUM.beforeID,TRC_ISOCHUM.beforeIoscID,TRC_ISOCHUM.earl,TRC_ISOCHUM.earlDept,TRC_ISOCHUM.earlDeptID,TRC_ISOCHUM.earlID,TRC_ISOCHUM.fActivity,TRC_ISOCHUM.fActivityName,TRC_ISOCHUM.fCreatdTime,TRC_ISOCHUM.fCreateDeptCode,TRC_ISOCHUM.fCreateDeptID,TRC_ISOCHUM.fCreateDeptName,TRC_ISOCHUM.fCreatePersonCode,TRC_ISOCHUM.fCreatePersonFID,TRC_ISOCHUM.fCreatePersonID,TRC_ISOCHUM.fCreatePersonName,TRC_ISOCHUM.fProcessID,TRC_ISOCHUM.fTaskID,TRC_ISOCHUM.fUpdateTime,TRC_ISOCHUM.humType,TRC_ISOCHUM.job,TRC_ISOCHUM.major,TRC_ISOCHUM.processStatus,TRC_ISOCHUM.version","updateMode":"whereVersion"}},"defaultValues":{"IsocID":"'0438FB25768C402CA4B95CA88EF39338'"}},"translateParameter":{"dataType":"row-list","transformIdcolumn":true,"includeState":true,"useNamespace":true,"cellnameByRelation":false,"rowsConfig":{"concept":"TRC_ISOCHUM","sequence":"IsocID,SGONGHAO,TRC_ISOCHUM,beforeID,beforeIoscID,earl,earlDept,earlDeptID,earlID,fActivity,fActivityName,fCreatdTime,fCreateDeptCode,fCreateDeptID,fCreateDeptName,fCreatePersonCode,fCreatePersonFID,fCreatePersonID,fCreatePersonName,fProcessID,fTaskID,fUpdateTime,humType,job,major,processStatus,version"}}}}__justepServerErrorEnd__
    at Object.create (core.min.js:65)
    at Object.Request.errorMessage (biz.common.min.js:12)
    at Object.callback (biz.common.min.js:12)
    at Object.p (biz.common.min.js:12)
    at f (core.min.js:65)
    at Object.add (core.min.js:65)
    at _sendRequest (biz.common.min.js:12)
    at Object.Request.sendRequest (biz.common.min.js:12)
    at Object.$var._sendBizRequest (eval at __actionFinish (biz.common.min.js:12), <anonymous>:1:579)
    at Object.Request.sendBizRequest (biz.common.min.js:12)


91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36067
发表于 2021-3-8 18:15:30 | 显示全部楼层
确认newData的数据中是否有特殊字符,设置的json格式是不是有问题
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

407

主题

926

帖子

2039

积分

金牌会员

Rank: 6Rank: 6

积分
2039
QQ
 楼主| 发表于 2021-3-10 20:36:59 | 显示全部楼层
jishuang 发表于 2021-3-8 18:15
确认newData的数据中是否有特殊字符,设置的json格式是不是有问题

请结帖。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-24 12:49 , Processed in 0.061435 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表