回复 7# noriri 的帖子
{
fieldLabel: kernel.bundle.getMsg('Filter state'),
id: 'filter_country',
xtype:'checkboxgroup',
columns: 3,
items:[
{boxLabel:kernel.bundle.getMsg('AU'), name: 'filter_country',inputValue:'AU'},
{boxLabel:kernel.bundle.getMsg('BY'), name: 'filter_country',inputValue:'BY'},
{boxLabel:kernel.bundle.getMsg('BE'), name: 'filter_country',inputValue:'BE'},
{boxLabel:kernel.bundle.getMsg('DK'), name: 'filter_country',inputValue:'DK'},
{boxLabel:kernel.bundle.getMsg('DE'), name: 'filter_country',inputValue:'DE'},
{boxLabel:kernel.bundle.getMsg('RU'), name: 'filter_country',inputValue:'RU'},
{boxLabel:kernel.bundle.getMsg('FR'), name: 'filter_country',inputValue:'FR'},
{boxLabel:kernel.bundle.getMsg('FI'), name: 'filter_country',inputValue:'FI'},
{boxLabel:kernel.bundle.getMsg('KR'), name: 'filter_country',inputValue:'KR'},
{boxLabel:kernel.bundle.getMsg('NL'), name: 'filter_country',inputValue:'NL'},
{boxLabel:kernel.bundle.getMsg('PL'), name: 'filter_country',inputValue:'PL'},
{boxLabel:kernel.bundle.getMsg('CA'), name: 'filter_country',inputValue:'CA'},
{boxLabel:kernel.bundle.getMsg('US'), name: 'filter_country',inputValue:'US'},
{boxLabel:kernel.bundle.getMsg('NO'), name: 'filter_country',inputValue:'NO'},
{boxLabel:kernel.bundle.getMsg('JP'), name: 'filter_country',inputValue:'JP'},
{boxLabel:kernel.bundle.getMsg('SE'), name: 'filter_country',inputValue:'SE'},
{boxLabel:kernel.bundle.getMsg('CH'), name: 'filter_country',inputValue:'CH'},
{boxLabel:kernel.bundle.getMsg('UK'), name: 'filter_country',inputValue:'UK'},
{boxLabel:kernel.bundle.getMsg('MO'), name: 'filter_country',inputValue:'MO'},
{boxLabel:kernel.bundle.getMsg('TW'), name: 'filter_country',inputValue:'TW'}
]
}这是chekboxgound的代码
所有数据的列表 this.itemList = [
// ['id','id'],
['name','name'],
['team_name','team_name'],
['schedule_name','schedule_name'],
['filter_country','filter_country'],
['filter_type','filter_type']
];
获取所有数据的值
function aa(fs){
var ret = '';
var field = '';
var j=0;
for(var i=0; i<this.itemList.length;i++){
var itemid = this.itemList[0];
try{
var itemvalue = fs.findById(itemid).getValue();
if(ret == ''){
ret = this.itemList[1] + '=' + itemvalue;
field = this.itemList[1];
j++;
}else{
ret = ret + '&' + this.itemList[1] + '=' + itemvalue;
field = field + ',' + this.itemList[1];
j++;
}
}catch (e){
continue;
}
}
return ret + '&byfield=' + field;}
传到后台'actiontype=4&generatetype=421&' +this.aa(fs);
列表其余的值都能得到 但是chekbox里面的数据得不到
我也不知道应该怎么传