|
收货详细保存,姓名,电话保存是正常的,地址怎么是 undefinedundefinedundefinedundefined
Model.prototype.dizhiRowClick = function(event){
this.comp("popOver1").show();
var data = this.comp("data1");
var addressData = this.comp("addressData");
var ID = this.comp("addressData").getCurrentRow();
var Add = "";
data.each(function(options) {
var row = options.row;
Add = Add + row.val("col0") + row.val("col1") + row.val("col2") + row.val("col3");
});
addressData.setFilter('filter0', "fID='" + ID + "'");//过滤
if (addressData.count() == 0) {
addressData.newData({
defaultValues : [{
"fID":justep.UUID.createUUID(),
"fCreateTime": justep.Date.toString(new Date(), justep.Date.STANDART_FORMAT),
"fUserID":"",
"fName":"",
"fPhoneNumber":"",
"fAddress":Add,
}]
});
} else if (addressData.count() == 1) {
addressData.setValue("fName",addressData.getValue("fName"));
addressData.setValue("fPhoneNumber",addressData.getValue("fPhoneNumber"));
addressData.setValue("fAddress",Add);
}
};
|
|