|
版本: |
|
小版本号: |
|
|
|
数据库: |
|
服务器操作系统: |
|
应用服务器: |
|
客户端操作系统: |
|
浏览器: |
|
|
|
我在afterRefresh事件中把bizData里面的时间变成‘yyyy-mm-dd HH:mi:ss'格式的字符串的过程中。报错了。
错误代码
Cannot read property 'setValue' of undefined
Cannot read property 'setValue' of undefined
TypeError: Cannot read property 'setValue' of undefined
at null.setValueByName (http://localhost:8080/x5/$v257df94acfe346c3a03375a295d2bd62/form/form.js?language=zh_CN:1:278088)
at null.setValue (http://localhost:8080/x5/$v257df94acfe346c3a03375a295d2bd62/form/form.js?language=zh_CN:1:269228)
at null.setValue (http://localhost:8080/x5/$v3eef30ca430e40ce8f96118603028656/component/data/data.js?language=zh_CN:1:47679)
at mainActivity.bizDataRQAfterRefresh (http://localhost:8080/x5/$vf2848bcab65d4fb9a6b74fc488ccaecd/UI/production/trainSubsystem/tjCx/jdjjb_shaohf/process/jdjjb/mainActivity.js?language=zh_CN:26:13)
at z [as ev_onafterrefresh] (http://localhost:8080/x5/$v257df94acfe346c3a03375a295d2bd62/form/form.js?language=zh_CN:1:287448)
at obj.(anonymous function) [as callEvent] (http://localhost:8080/x5/$v257df94acfe346c3a03375a295d2bd62/form/form.js?language=zh_CN:1:287175)
at null.refreshData (http://localhost:8080/x5/$v3eef30ca430e40ce8f96118603028656/component/data/data.js?language=zh_CN:1:5453)
at null.loadData (http://localhost:8080/x5/$v3eef30ca430e40ce8f96118603028656/component/data/data.js?language=zh_CN:1:27055)
at HTMLSpanElement. (http://localhost:8080/x5/$v3eef30ca430e40ce8f96118603028656/component/data/data.js?language=zh_CN:1:59012)
at HTMLSpanElement.(anonymous function) (http://localhost:8080/x5/$v257df94acfe346c3a03375a295d2bd62/form/form.js?language=zh_CN:1:213836)
程序源码
mainActivity.bizDataRQAfterRefresh = function(event){
var bizDataRQ=justep.xbl('bizDataRQ');
var count=bizDataRQ.getCount();
var rowID;
var str_rq;
var calculateShow;
if (count>0){
for(var i=0;i<count;i++){
rowID=bizDataRQ.getID(i);
str_rq=bizDataRQ.getValue('RQ', rowID); calculateShow=str_rq.substr(0, 10)+' '+str_rq.substr(11, 8);
bizDataRQ.setValue('calculateShow', calculateShow, rowID);
}
}
};
|
-
|