大家好:
我的画面有一个form和一个grid,form作为grid的查询条件。我通过以下方式传参数。
[code="javaScript"]
getCustomersList: function() {
var data = this.findParentByType('panel').findById('searchForm').getForm().getValues();
this.ds.baseParams = data;
this.ds.load({params : {start : 0,limit : 20}});
}
[/code]
通过firebug发现,data中checkBox控件在被选中时,值是"on",而不是true
有没有办法让checkBox选中时的值变成true呢?
奇怪的是我根据checkBox的name取值时,firefox中报了一个值是null的错。。
取值代码:
this.findParentByType('panel').findById('searchForm').getForm().findField('deliveryDist').getValue();
这个'deliveryDist'在画面中是存在的啊。。